Create document records using command line
Mon, 07/23/2012 - 07:50
Hi:
I need a set of documents created at start-up since they are predominantly static lookups. Is there a command line way of creating these document records? Also, if I want to keep these documents from expiring, how do I inform Couchbase to never to purge them?
Thanks!
Kumar
It's fairly easy to create a script in the language of your choice to load documents, once they are in the Couchbase database they will always be available (they don't need to be loaded repeatedly between restarts), just like any database. If you are testing an application and flush the database and want to load documents after each flush, again I recommend the above, create a simple script that loads from files and either does add or set to insert them into Couchbase.
If you don't set a TTL then they never expire nor are purged!
@scalabl3
Technical Evangelist
Couchbase Inc.