We currently use a pivot table that aggregates information for our users hourly in UTC. The problem we are facing is that this table becomes too large and slows down our system significantly. We have followed all the configuration methods recommended for PostgreSQL, and we are still experiencing slowness.
Our idea was to start aggregation in the afternoon, and not in an hour, but the problem is that we allow our customers to change the time zone that recalculates the data for that day.
Does anyone know a way to store a daily resume, but still respect the numbers and totals when switching time zones?
sql database database-design data-warehouse
Russ Bradberry
source share