Repository navigation
Keep the archive sources' row counts until a row is written - #258
Merged
Merged
Conversation
archive.source_status counted each archive source's rows by origin on every call, and the gallery asks for it with every context. On a case of 149,824 rows from one archive that was a 59 ms pass, so a repeated /api/context still took 61 ms there and reads beside it waited a median of 49 ms. The counts are kept through CaseDB.derived now. A repeated context takes 1.5 to 2.3 ms on that case and reads no row of files. Whether the archive is where the case recorded it is still looked at on every call. The rules file records the waiting measured on that case and why a read connection per thread was not built. 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.
Keeps each archive source's row counts until a row is written to the case.
archive.source_statuscounted the source's rows by origin on every context request, a 59 ms pass on a case of 149,824 rows.CaseDB.derived. A repeated/api/contexton that case went from 61 ms to about 2 ms.Co-Authored-By: Claude Opus 5.5 [email protected]