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
..
2018-07-09 16:09:20 +10:00
2019-01-30 10:53:17 +00:00
2018-07-09 16:09:20 +10:00
2019-01-22 11:00:04 +00:00
2018-09-29 02:14:40 +01:00
2019-01-30 10:53:17 +00:00
2018-08-31 00:19:58 +10:00
2018-07-09 16:09:20 +10:00
2018-12-01 23:07:35 -06:00
2018-07-09 16:09:20 +10:00
2018-07-12 09:45:37 +01:00
2018-07-09 16:09:20 +10:00
2018-10-25 19:10:24 +01:00
2018-07-09 16:09:20 +10:00
2018-07-09 16:09:20 +10:00