Skip to content

Commit

Permalink
perf: bring back index measurements.published_at (#286)
Browse files Browse the repository at this point in the history
Our observability tooling needs to find the oldest measurement,
which is expensive to do without an index.

Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos authored May 14, 2024
1 parent 7c7f848 commit ee260cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migrations/050.do.index-measurements-by-time.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX CONCURRENTLY measurements_finished_at ON measurements (finished_at);

0 comments on commit ee260cf

Please sign in to comment.