Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Create document records using command line

1 reply [Last post]
  • Login or register to post comments
Mon, 07/23/2012 - 07:50
kuramach
Offline
Joined: 07/23/2012
Groups: None

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

Top
  • Login or register to post comments
Mon, 07/23/2012 - 16:19
scalabl3
Offline
Joined: 07/18/2012
Groups:

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.
 

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker