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

Unnest IN/ANY/EXISTS subqueries and optimize them using semi-join algorithm #8061

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dyemanov
Copy link
Member

@dyemanov dyemanov commented Apr 1, 2024

The initial implementation was developed by customer request, later it was slightly improved and committed into a separate branch for testing. Some issues were found that prevented it from inclusion into v5.0. Still work in progress.

…eimplemented support for semi/anti joins inside the nested loop algorithm. Slightly changed implementation of full outer joins. Added transformation of IN/EXISTS subqueries into lateral semi-joins. Basic optimizer support for semi-joins. More efficient optimization for cross joins. Added some debug info (hash table statistics) for hash joins.
@dyemanov
Copy link
Member Author

A partial implementation (covering only equivalence conditions) is committed into v5.0.1, but disabled by default (see SubQueryConversion setting in firebird.conf).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants