Yes yes yes! This is exactly how it should work, pull all the docs in
a single http request and also record the last seq num. Then later
incrementally pull new changes using the seq num, lather rinse repeat.
Restore by POSTing the docs in bulk updates.
-Damien
On Dec 5, 2008, at 5:19 PM, Chris Anderson wrote:
On Fri, Dec 5, 2008 at 2:08 PM, Antony Blakey
<[EMAIL PROTECTED]> wrote:
Backup/Restore are trivial to write, and an Erlang plugin will be
easy
An HTTP request against
/db/_all_docs_by_seq?include_docs=true&all_revs=true* could be
streamed to a file. The result would be a single JSON list of all the
uncompacted changes. I wonder if we could get mochiweb to gzip this by
setting the right headers?
* I think we might need to add more power to include_docs before it
can pull every _rev, but it's worth a shot.
Chris
--
Chris Anderson
http://jchris.mfdz.com