Very slow query performance in aws postgresql for a table with 4 billion rows – Amazon Web Sevices
The Problem We have a relational table where we store user activity. A query like the following takes 77 seconds! FROM "site_activity" WHERE ( NOT "site_activity"."is_deleted" AND "site_activity"."user_id" = 68812389 AND NOT ( "site_activity"."kind" IN ( 'updated', 'duplicated', 'reapplied' )…