8 Commits

Author SHA1 Message Date
ebdf94e346 Revert "Skip incompatible migration entirely"
This reverts commit 545eb6385d73efb004dd73535adc5279cd7b7a92.
2018-10-31 22:09:43 +01:00
545eb6385d Skip incompatible migration entirely 2018-09-03 21:26:36 +08:00
18c4e7ecb1 Revert "Prevent upsert operation"
This reverts commit 641ecd4677b0c95fdbf83a8b4429c51c39e603aa.
2018-09-03 21:09:01 +08:00
641ecd4677 Prevent upsert operation
Only works in newer postgresql, but also not really necessary because
the table is brandnew there.
2018-09-03 20:43:38 +08:00
Eugen Rochko
f13afa1ee9
Do not use WHERE NOT IN in CopyStatusStats migration (#8281)
Fix #8275

As the batch operation progresses, the statuses_stats table grows,
and the WHERE NOT IN subquery becomes more expensive
2018-08-19 02:01:49 +02:00
Eugen Rochko
edb1de7800
Make CopyStatusStats migration use batches of 1000 to avoid locks (#8256) 2018-08-18 03:44:50 +02:00
Eugen Rochko
be13e95d06
Fix null constraint violation in copy status stats migration (#8198) 2018-08-14 20:24:36 +02:00
Eugen Rochko
8e111b753a
Move status counters to separate table, count replies (#8104)
* Move status counters to separate table, count replies

* Migration to remove old counter columns from statuses table

* Fix schema file
2018-08-14 19:19:32 +02:00