synapse-old/synapse/storage
Erik Johnston 362d80b770 Reduce user_ips bloat during dedupe background update
The background update to remove duplicate rows naively deleted and
reinserted the duplicates. For large tables with a large number of
duplicates this causes a lot of bloat (with postgres), as the inserted
rows are appended to the table, since deleted rows will not be
overwritten until a VACUUM has happened.

This should hopefully also help ensure that the query in the last batch
uses the correct index, as inserting a large number of new rows without
analyzing will upset the query planner.
2019-02-12 11:39:34 +00:00
..
engines Fix UPSERTs on SQLite 3.24+ (#4477) 2019-01-28 15:43:32 +00:00
schema Add support for persisting event format versions 2019-01-23 11:30:01 +00:00
util run isort 2018-07-09 16:09:20 +10:00
__init__.py Fix flake8 (#4519) 2019-01-30 10:53:17 +00:00
_base.py Fix 'no unique or exclusion constraint' error (#4591) 2019-02-08 18:30:46 +00:00
account_data.py run isort 2018-07-09 16:09:20 +10:00
appservice.py Make EventStore inherit from EventFederationStore 2018-07-26 12:48:51 +01:00
background_updates.py Fix typos 2019-01-22 11:00:04 +00:00
client_ips.py Reduce user_ips bloat during dedupe background update 2019-02-12 11:39:34 +00:00
deviceinbox.py Port storage/ to Python 3 (#3725) 2018-08-31 00:19:58 +10:00
devices.py Add unique indexes to a couple of tables 2018-11-02 10:36:13 +00:00
directory.py fix thinkos 2018-09-29 02:14:40 +01:00
e2e_room_keys.py add new endpoint to update backup versions 2019-02-06 17:57:10 -05:00
end_to_end_keys.py Lets convert bytes to unicode instead 2018-11-08 12:33:13 +00:00
event_federation.py Refactor event building into EventBuilder 2019-01-29 11:13:00 +00:00
event_push_actions.py Fix some looping_call calls which were broken in #3604 2018-07-26 11:48:08 +01:00
events.py Fix flake8 (#4519) 2019-01-30 10:53:17 +00:00
events_worker.py Fix infinite loop when an event is redacted in a v3 room (#4535) 2019-01-31 15:34:17 +00:00
filtering.py Port storage/ to Python 3 (#3725) 2018-08-31 00:19:58 +10:00
group_server.py run isort 2018-07-09 16:09:20 +10:00
keys.py Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase on py3) (#4068) 2018-10-20 11:16:55 +11:00
media_repository.py Keep track of last access time for local media 2018-01-17 10:24:43 +00:00
monthly_active_users.py Fix UPSERTs on SQLite 3.24+ (#4477) 2019-01-28 15:43:32 +00:00
openid.py Add an openidish mechanism for proving to third parties that you own a given user_id 2016-05-05 13:42:44 +01:00
prepare_database.py Drop sent_transactions 2018-12-01 23:07:35 -06:00
presence.py run isort 2018-07-09 16:09:20 +10:00
profile.py Remote profile cache should remain in master worker 2018-08-17 11:37:42 +01:00
push_rule.py Merge remote-tracking branch 'origin/develop' into rav/remove_who_forgot_in_room 2018-07-23 17:15:12 +01:00
pusher.py Use native UPSERTs where possible (#4306) 2019-01-24 21:31:54 +11:00
receipts.py Update return value docstring 2018-07-12 09:45:37 +01:00
registration.py Ensure synchrotrons can access is_support_user in the storage layer 2019-01-02 10:19:59 +00:00
rejections.py run isort 2018-07-09 16:09:20 +10:00
room.py preserve room visibility 2018-10-25 19:10:24 +01:00
roommember.py Use term 'out of band membership' instead 2019-01-24 17:33:19 +00:00
search.py Add an option to disable search for homeservers which may not be interested in it (#4230) 2018-12-04 12:01:02 +01:00
signatures.py Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase on py3) (#4068) 2018-10-20 11:16:55 +11:00
state.py Raise an exception instead of returning None 2019-01-31 18:34:15 +00:00
stream.py Comments on get_all_new_events_stream 2018-10-12 09:55:41 +01:00
tags.py run isort 2018-07-09 16:09:20 +10:00
transactions.py Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase on py3) (#4068) 2018-10-20 11:16:55 +11:00
user_directory.py Filter user directory state query to a subset of state events (#4462) 2019-02-05 12:16:28 +00:00
user_erasure_store.py run isort 2018-07-09 16:09:20 +10:00