-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slot graph: handle large query results (#1432)
For long running mirrors, the number of entries of slot records can grow very large. This causes UI to hang when we select 1 day or 1 month. This PR attempts to speed up the fetch by adding an index to updated_at and removing fetch of wal_status which was not being used anyways --------- Co-authored-by: Kevin Biju <[email protected]>
- Loading branch information
1 parent
0496eb5
commit 9c563b5
Showing
3 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE INDEX index_slot_updated_at ON peerdb_stats.peer_slot_size (updated_at); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters