Commit Graph

5 Commits (827e590d8ecf3b736e7a0ee16c7962e1e1cb78bb)

Author SHA1 Message Date
Eugen Rochko 886af5ce19
Add fallback for PostgreSQL without upsert in CopyStatusStats ()
Fix 
Eugen Rochko f13afa1ee9
Do not use WHERE NOT IN in CopyStatusStats migration ()
Fix 

As the batch operation progresses, the statuses_stats table grows,
and the WHERE NOT IN subquery becomes more expensive
Eugen Rochko edb1de7800
Make CopyStatusStats migration use batches of 1000 to avoid locks ()
Eugen Rochko be13e95d06
Fix null constraint violation in copy status stats migration ()
Eugen Rochko 8e111b753a
Move status counters to separate table, count replies ()
* Move status counters to separate table, count replies

* Migration to remove old counter columns from statuses table

* Fix schema file