-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: checkpoint selecting strategy on sync-store getEvents (#907)
* implements checkpoint selecting strategy and improved sql generation * simplify max checkpoint selection * use offset instead of limit to improve performance * Revert "use offset instead of limit to improve performance" This reverts commit 705ff40. * checkpoint limit adjustment * Revert "checkpoint limit adjustment" This reverts commit 6fe6e81. * reintroduces offset selection * add sqlite and tweaks * changeset --------- Co-authored-by: typedarray <[email protected]>
- Loading branch information
1 parent
1e423a1
commit c9886d9
Showing
3 changed files
with
123 additions
and
2 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,5 @@ | ||
--- | ||
"@ponder/core": patch | ||
--- | ||
|
||
Improved the performance an important internal SQL query (`getEvents`) for large apps. An app with ~5M rows in the `ponder_sync.logs` table saw a ~20x reduction in execution time for this query. Smaller apps will see a more modest improvement. |
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