Ad-hoc reporting response time degrades with large crosstab views and multiple dimension filters

iantechie
Mon, 03 Mar 2025 14:05:00 +0000

Composite indexes would help, but I think your bigger issue is that you’re working with live connections to a 2M row fact table for ad-hoc analysis. Have you considered using extracts with pre-aggregation? You could create an extract that pre-aggregates at the day/region/product/customer level, which would reduce your row count by 80-90% while still supporting detailed analysis.

Also, 127 seconds for that query suggests database performance issues beyond just indexing. What’s your database platform and server specs?