English 中文(简体)
What is the "revpos" value used for in CouchDB attachments?
原标题:
  • 时间:2009-12-01 09:47:11
  •  标签:
  • couchdb

Here is an example:

   "_attachments": {
       "002-imgsq.jpg": {
           "stub": true,
           "content_type": "image/jpeg",
           "length": 80074,
           "revpos": 3
       },
       "016-imgsq.jpg": {
           "stub": true,
           "content_type": "image/jpeg",
           "length": 100095,
           "revpos": 4
       },
       "MASTER_img-square.jpg": {
           "stub": true,
           "content_type": "image/jpeg",
           "length": 70611,
           "revpos": 2
       }
   }
最佳回答

The attachment revpos is the doc s rev prefix (a sequential number) from when the attachment was added or updated. I believe it s only really used during replication to avoid copying attachments that have not changed since the last replication.

问题回答

暂无回答




相关问题
couchdb for /really/ distributed replica

let s say i want to implement a distributed database (each node being the replica of the others); i hear that cdb is able to easily sync between two nodes and at least support some form of conflict ...

CouchDB View, Map, Index, and Sequence

I think read somewhere that when a View is requested the "map" is only run across documents that have been added since the last time it was requested? How is this determined? I thought I saw something ...

representing a many-to-many relationship in couchDB

Let s say I m writing a log analysis application. The main domain object would be a LogEntry. In addition. users of the application define a LogTopic which describes what log entries they are ...

couchDB , python and authentication

I have installed couchDB v 0.10.0, and am attempting to talk to it via python from Couch class downloaded from couchDB wiki. Problem is: Create database mydb : { error : unauthorized , reason : ...

Temp View Caching?

I m using CouchDB with a home-grown C# interface library. The most common method of accessing CouchDB with this library results in a temp view being created. I ve optimized the library so that it uses ...

热门标签