Merge lp:~jameinel/u1db/combined-put-and-gen into lp:u1db
Status: | Merged |
---|---|
Merged at revision: | 154 |
Proposed branch: | lp:~jameinel/u1db/combined-put-and-gen |
Merge into: | lp:u1db |
Prerequisite: | lp:~jameinel/u1db/put_doc_save_conflict |
Diff against target: |
289 lines (+68/-28) 10 files modified
u1db/__init__.py (+6/-1) u1db/backends/__init__.py (+8/-5) u1db/backends/inmemory.py (+3/-0) u1db/backends/sqlite_backend.py (+7/-3) u1db/remote/http_app.py (+1/-2) u1db/sync.py (+9/-9) u1db/tests/test_backends.py (+24/-0) u1db/tests/test_http_app.py (+2/-2) u1db/tests/test_remote_sync_target.py (+4/-2) u1db/tests/test_sync.py (+4/-4) |
To merge this branch: | bzr merge lp:~jameinel/u1db/combined-put-and-gen |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuele Pedroni | Approve | ||
Review via email: mp+86030@code.launchpad.net |
This proposal supersedes a proposal from 2011-12-14.
Description of the change
This updates Database.
The main benefit is that we have 1 transaction per document, rather than 2.
It should be pretty easy to update insert_
Updated to merge the removal of force_doc_
Also updated to include target => source updates.
One thing I'm wondering, we currently have the thunk take_doc in order to pass the other_replica_uid to _insert_
I wonder if we want to change the callback api, instead of being (doc, gen) to be (doc, replica_uid, replica_gen).
Thoughts?
looks good