Merge lp:~wgrant/launchpad/9.1-serializable-is-special into lp:launchpad
Proposed by
William Grant
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Stuart Bishop | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15064 | ||||
Proposed branch: | lp:~wgrant/launchpad/9.1-serializable-is-special | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~wgrant/launchpad/psycopg2-2.4.4 | ||||
Diff against target: |
146 lines (+17/-9) 8 files modified
lib/lp/registry/doc/convert-person-to-team.txt (+1/-1) lib/lp/services/config/schema-lazr.conf (+1/-1) lib/lp/services/config/tests/test_database_config.py (+2/-2) lib/lp/services/database/multitablecopy.py (+1/-1) lib/lp/services/database/sqlbase.py (+2/-0) lib/lp/services/database/tests/script_isolation.py (+1/-1) lib/lp/services/database/tests/test_isolation_changes.py (+6/-2) lib/lp/services/webapp/adapter.py (+3/-1) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/9.1-serializable-is-special | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+100913@code.launchpad.net |
Commit message
Switch appservers from SERIALIZABLE to REPEATABLE READ isolation. No change in behaviour under PostgreSQL 8.4, but much lighter on 9.1.
Description of the change
Appservers currently ask psycopg2 for SERIALIZABLE isolation. In PostgreSQL 9.1 this uses SSI, which is far more expensive than 8.4's implementation. 9.1's REPEATABLE READ is equivalent to 8.4's SERIALIZABLE, and in 8.4 REPEATABLE READ is just an alias for SERIALIZABLE, so we should use REPEATABLE READ instead.
This branch adds support for REPEATABLE READ, and changes SERIALIZABLE defaults to REPEATABLE READ.
To post a comment you must log in.
This looks good.