PostgreSQL batch statistics calculation

  • Thread starter Deleted member 43669
  • Start date
Status
Not open for further replies.
D

Deleted member 43669

Guest
We are developing a project that collects data from diverse sources. Then we need to calculate complex statistics from the data collected.

Currently, we just dump all data collected to tables and periodically run processes which consist of SQL queries that update statistics tables.

In parallel, we have a web frontend where users can query the collected data and the calculated statistics.

We are optimizing the SQL statements as much as we can, but it does not seem possible for the statistics calculation to finish in "short time" (i.e. seconds).

We have noticed that when updating the statistics, the web frontend response times increase substantially, probably due to increased IO.

We would like that response times were not affected by this, accepting that the statistics calculations might be significantly slower.

What's a good way to proceed? I had thought of collecting data and calculating statistics on a server and then push the data to a separate database server and query that on the frontend, but it sounds quite complex.

Thoughts, suggestions?
 
Status
Not open for further replies.