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
..
2019-01-30 10:53:17 +00:00
2019-02-11 22:01:27 +00:00
2019-01-29 23:09:10 +00:00
2019-01-30 10:53:17 +00:00
2019-01-29 23:09:10 +00:00
2018-12-14 05:13:56 +11:00
2019-02-05 18:33:02 +00:00
2018-10-19 21:45:45 +11:00