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

retrieve doc with no attachements

No replies
  • Login or register to post comments
Mon, 05/21/2012 - 16:35
momanning
Offline
Joined: 05/21/2012
Groups: None

Hello
Would like to use the version with attachements approach outlined in this http://blog.couchbase.com/simple-document-versioning-couchdb article but do not want to re-store the previous attachments every time:

Rev2:
{"_id":"5ae4679615fa4503992d39a2c5000b0c","_rev":"2-2a28c28030f67c725294bf39c734c984","field1":1,"field2":"one","jquery.couch.attachPrevRev":true,"_revs_info":[{"rev":"2-2a28c28030f67c725294bf39c734c984","status":"available"},{"rev":"1-a6d498edaedb8f5852a86cc7b02fb2fd","status":"available"}]}

Rev3:
{"_id":"5ae4679615fa4503992d39a2c5000b0c","_rev":"3-9f19a5719f366ea376d0ce9267ef8a52","field1":2,"field2":"two","jquery.couch.attachPrevRev":true,"_revs_info":[{"rev":"3-9f19a5719f366ea376d0ce9267ef8a52","status":"available"},{"rev":"2-2a28c28030f67c725294bf39c734c984","status":"available"},{"rev":"1-a6d498edaedb8f5852a86cc7b02fb2fd","status":"available"}],"_attachments":{"rev-2":{"content_type":"application/json","revpos":3,"digest":"md5-6N71yRV2JIcXfcYjfqHgAg==","length":294,"stub":true}}}

On openDoc or read can I set a default that attachement are not retrieved so that each version added as attachements represents one specific version? Have looked around but cant seem to find the flag...

Thanks

Top
  • 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