PRX / feeder.prx.org

Dovetail podcast content management system
https://podcasts.dovetail.prx.org
GNU Affero General Public License v3.0
5 stars 0 forks source link

Trim publishing queue items and publishing states logs #916

Open svevang opened 11 months ago

svevang commented 11 months ago

Given the append nature of these two tables they incrementally get larger in size with each publishing attempt. Most of the queries are hitting indexes, but if any query falls back to a table scan, then things can slow down. We're approaching ~100k rows in each table.

svevang commented 5 months ago

Just checked and it appears we still have some headroom

irb(main):002:0> PublishingQueueItem.count
=> 195077
irb(main):003:0> PublishingPipelineState.count
=> 261095
irb(main):004:0>