Skip to content

Task: Optimise Aggregation QueryΒ #366

Description

@nelsonic

Running:

SELECT count(*) AS exact_count FROM hits;

We see:
Image

With 30M Rows. This query takes 244 seconds. ⏳
Running this query for each hit badge was crashing the server. πŸ’”
But with the hit_count table in place, it's now not a burning issue πŸ”₯ πŸ˜₯
priority-2 because the aggregation isn't crashing the server anymore and we can fix this with time. πŸ§‘β€πŸ’» πŸ”

Starting point: https://stackoverflow.com/questions/55018986/postgresql-select-count-query-takes-long-time

Metadata

Metadata

Assignees

Type

Projects

Status
More ToDo ThanCanEver Be Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions