Skip to content
RED SAGSkills
hard20 pts · first answer countsdatabasespostgresqlperformance

Deleting old log rows every night

A nightly `DELETE FROM api_logs WHERE created_at < now() - interval '90 days'` removes 30 million rows, takes hours and bloats the table. What is a better design?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions