Repository navigation
Fast paths for annotated schemas - #1
Merged
Merged
Conversation
…cached fetchOne - Schema stores a one-column primary key compiled as a list as a string, so the compiled row makers and the direct insert/update paths apply to annotated entities. - Select::count() uses COUNT(*) when the query has no join, grouping, DISTINCT or set operation (no sort/hash of the primary keys). - A direct unit of work with a single statement outside a transaction runs in autocommit, without BEGIN and COMMIT; an insert with nothing to write takes the generic path. - wherePK() with one scalar key records a plain where, and fetchOne() runs the cached statement of the shape when there is one. - Row makers inline the datetime caster. - Shape plans skip scoped roles (a cached statement kept the first scope values) and row makers skip joined-table inheritance bases.
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.
Chave primária de uma coluna como string no schema compilado (ativa os caminhos compilados), COUNT(*) sem join/group/distinct, INSERT/UPDATE único sem BEGIN/COMMIT, fetchOne/wherePK com statement em cache. Corrige: statement em cache congelava o valor de scope; JTI hidratava a classe errada. No bench do Nimbus: show 32,7k→40,0k, paginação 14,0k→20,4k req/s.