Comment #5 on issue 226 by djc.ochtman: Provide ability to do bulk dump and
load
http://code.google.com/p/couchdb-python/issues/detail?id=226
I've pushed modified versions; for r6f91fa675423, I:
- Renamed function from write_dump() to dump_doc()
- Moved dump_doc() outside dump_db(), added envelope argument
- Rewrote commit message to clarify
In re8cafe210d91, I:
- Made sure lines didn't get longer than 80 chars
- Tightened up the loop code (while True, if condition: break is a little
silly)
- Rewrote commit message to clarify
Could you redo your bulk loading along these lines? You also introduce a
bug wrt error handling; db.update() doesn't throw Exceptions like
db.__setattr__(). Also, your test case references a test data file that
isn't included in the patch.