Skip to content

Commit

Permalink
Create Index on topics_stats to fix tenants tab latency (#420)
Browse files Browse the repository at this point in the history
* Create Index on topics_stats to fix tenants tab latency

* Trigger Build
  • Loading branch information
sourabhaggrawal authored Apr 4, 2024
1 parent 66faeee commit 672863e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/sql/postgresql-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ CREATE TABLE IF NOT EXISTS topics_stats (
time_stamp BIGINT
);

CREATE INDEX IF NOT EXISTS ix_topics_stats_timestamp on topics_stats(time_stamp);

CREATE TABLE IF NOT EXISTS publishers_stats (
publisher_stats_id BIGSERIAL PRIMARY KEY,
producer_id BIGINT,
Expand Down

0 comments on commit 672863e

Please sign in to comment.