You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Querying data from the auditlog database is slow. Currently we have partitioned database per year. But there is enormous data that is logged.
Query analysis
Start by monitoring the database for slow-running queries. PostgresSql provides tools like pg_stat_statements and pgBadger for query analysis.
Index Optimization
Create indexes on columns used in WHERE clauses, join conditions, and order by clauses to improve query performance. Consider using composite indexes for queries involving multiple columns.
Query Rewriting
Rewrite queries to make them more efficient. this could involve limiting the data based on user, timeperiod.
Query Tuning
Adjust the query parameters such as work_mem, effective_cache_size, and random_page_cost based on the characteristics of the workload and hardware configuration.
The content you are editing has changed. Please copy your edits and refresh the page.
Case
Querying data from the auditlog database is slow. Currently we have partitioned database per year. But there is enormous data that is logged.
Query analysis
Start by monitoring the database for slow-running queries. PostgresSql provides tools like pg_stat_statements and pgBadger for query analysis.
Index Optimization
Create indexes on columns used in WHERE clauses, join conditions, and order by clauses to improve query performance. Consider using composite indexes for queries involving multiple columns.
Query Rewriting
Rewrite queries to make them more efficient. this could involve limiting the data based on user, timeperiod.
Query Tuning
Adjust the query parameters such as work_mem, effective_cache_size, and random_page_cost based on the characteristics of the workload and hardware configuration.
Tasks
The text was updated successfully, but these errors were encountered: