-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: faster timestamp queries (#479)
* fix: postgres timestamp casting should include timezone Signed-off-by: Clément Salaün <[email protected]> * fix: fix: test Signed-off-by: Clément Salaün <[email protected]> * feat: faster endtime based queries Signed-off-by: Clément Salaün <[email protected]> * feat: add temporal index on transactions Signed-off-by: Clément Salaün <[email protected]> * fix: enable optimisation only when pageSize is one Signed-off-by: Clément Salaün <[email protected]> * fix: apply optimized filter only for postgres Signed-off-by: Clément Salaün <[email protected]> --------- Signed-off-by: Clément Salaün <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
pkg/storage/sqlstorage/migrates/21-optimized-temporal/postgres.sql
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,2 @@ | ||
--statement | ||
CREATE INDEX IF NOT EXISTS transactions_ts_desc ON "VAR_LEDGER_NAME".transactions ("timestamp" DESC); |
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