-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): Make
get_expected_l1_batch_timestamp()
more efficient (#963)
Hopefully. It's not the exact same query as previously, but it should be equivalent. ## What ❔ Makes `get_expected_l1_batch_timestamp()` DB query more efficient (hopefully) by getting rid of the `WHERE l1_batch_number IS NULL` clause. ## Why ❔ Inefficient DB queries are bad, mkay. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`.
- Loading branch information
Showing
4 changed files
with
105 additions
and
47 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
...lib/dal/.sqlx/query-3191f5ba16af041123ffa941ad63fe77e649e9d110043d2ac22005dd61cfcfb9.json
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...lib/dal/.sqlx/query-51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...lib/dal/.sqlx/query-c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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