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 173 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.

dyemanov added 3 commits July 3, 2023 22:02
…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).

actions-user and others added 22 commits November 16, 2024 16:27
…8046)

* Postfix for #7989 - Improve performance of external (UDR) functions.

* Extract common functions.

* Fix profiler request time for external functions.

* Change cancellation detection for external functions.

* Move new private code to anonymous namesapce and rename functions.
…e from backup (FB5, RC2)

Don't use common SortOwner for sorts with different dbb's.
After #7671 it could contain cached sort buffers from different pools (dbb_permanent) and then release it to the wrong dbb_sort_buffers making possible usage of deallocated memory later.
…(this time about short unpacked fragments)
* Add missing synchronization to cached vectors of known pages. Thanks to Vlad Khorsun.

* Fixed typo
marat-iskakov and others added 30 commits November 16, 2024 16:27
…uring flush) with small number of DefaultDbCachePages
… introducing GUID-v7 (#8188)

Replacing deprecated win32 crypto functions.
Do not fail packaging if qsg is not found
Fail packaging if ib_util.* not found
white space
* Delete tra_dbcreators_list in ~jrd_tra

If we don't delete it manually assert will be thrown if SEC$DB_CREATORS returns a lot of records

* Add missing default initialization for tra_dbcreators_list

---------

Co-authored-by: Artyom Ivanov <[email protected]>
Fixed bug #8203 : Function MAKE_DBKEY may produce random errors if used with relation name
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.