couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Gable <zi...@ignition-project.com>
Subject Re: random access to log db
Date Tue, 24 Jul 2012 00:15:31 GMT
This could be done with CouchDB. You need a view that emits the ID and then
?startkey=200&endkey=299 on the view. Add include_docs=true if you want the
log doc too.

Not sure how you guarantee the numbers will increase atomically though.
On Jul 23, 2012 6:24 PM, "Mark Hahn" <mark@hahnca.com> wrote:

> I have a log db that I am only adding new docs to.  I am never updating,
> deleting, or compacting any docs.
>
> I'd like to show these docs in a table on the client-side.  The table
> software will ask for ranges of docs like 200 to 300, assuming sequential
> id numbers.
>
> Is it correct that this cannot be done with normal couchdb queries?  How
> would you deal with this situation?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message