Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Insert delta of current_state_events to be more efficient #1840
Conversation
erikjohnston
assigned
NegativeMjark
Jan 20, 2017
erikjohnston
added some commits
Jan 20, 2017
| - ], | ||
| - ) | ||
| + # Figure out what has changed (if anything). Then we simply delete | ||
| + # and readd the keys that have been changed. |
| txn, | ||
| table="current_state_events", | ||
| keyvalues={"room_id": room_id}, | ||
| + retcols=["event_id", "type", "state_key"], |
| + | ||
| + Returns: | ||
| + 2-tuple (to_delete, to_insert) where both are state dicts, i.e. | ||
| + (type, state_key) -> event_id. `to_delete` are the entreis to |
erikjohnston
merged commit f5b4648
into
develop
Jan 23, 2017
8 checks passed
Sytest Dendron (Commit)
Build #1416 origin/erikj/current_state_fix succeeded in 11 min
Details
Sytest Dendron (Merged PR)
Build finished.
Details
Sytest Postgres (Commit)
Build #2233 origin/erikj/current_state_fix succeeded in 6 min 52 sec
Details
Sytest Postgres (Merged PR)
Build finished.
Details
Sytest SQLite (Commit)
Build #2301 origin/erikj/current_state_fix succeeded in 6 min 27 sec
Details
Sytest SQLite (Merged PR)
Build finished.
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
continuous-integration/travis-ci/push
The Travis CI build passed
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
erikjohnston commentedJan 20, 2017
No description provided.