Repository navigation
Count the context's containers in one statement - #260
Merged
Merged
Conversation
The sidebar's five container counts came from three statements. Each decided again what kind of container a row is, and two of them built the set of every archive or document container to count what was extracted from one. On a case of 149,824 rows, 119,604 of them containers, they took 327 ms. One statement now decides it once per container and counts what was extracted once per container. It takes 111 ms on that case, and a context worked out after a write went from 582 to 609 ms down to 355 to 382 ms. The five numbers are the same on the cases and fixtures compared, on SQLite 3.43.1, 3.50.4 and 3.53.4. The filters are not changed. A new test writes the counts out for rows a count could get wrong and holds both the statement and the filters to them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Counts the context's containers in one statement instead of three.
Co-Authored-By: Claude Opus 5.5 [email protected]