Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip Parse if no args provided #337

Merged
merged 3 commits into from
Jul 12, 2022
Merged

Skip Parse if no args provided #337

merged 3 commits into from
Jul 12, 2022

Conversation

fantix
Copy link
Member

@fantix fantix commented Jul 11, 2022

This optimization saves one round trip for executing (except for the query_required_single*() family) uncached commands without args.

Also fixed a regression to raise error if arguments are given when none is expected.

@fantix fantix requested a review from elprans July 11, 2022 17:22
@fantix fantix marked this pull request as draft July 11, 2022 18:59
@fantix fantix marked this pull request as ready for review July 11, 2022 20:16
@fantix fantix merged commit d56013e into master Jul 12, 2022
@fantix fantix deleted the parse-optimization branch July 12, 2022 00:15
fantix added a commit to edgedb/edgedb that referenced this pull request Dec 6, 2023
The reason it was kept is explained in #3120, mitigated in #3814 #3837.
But the core issue that compiler assumes mutation of transaction state
for any compilation even by Parse message still exists. We can drop the
`_last_anon_compiled` because the client bindings are no longer sending
Parse + Execute for `commit` or `rollback` commands (which triggered two
server compilation of the same command) like edgedb/edgedb-python#337.
However, we still need to double check all bindings to make sure the
transaction control commands are using only one `Execute` message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants