Unnest IN/ANY/EXISTS subqueries and optimize them using semi-join algorithm#8061
Merged
Unnest IN/ANY/EXISTS subqueries and optimize them using semi-join algorithm#8061
Conversation
…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.
…, this allows expression-based hashing
Member
Author
|
A partial implementation (covering only equivalence conditions) is committed into v5.0.1, but disabled by default (see |
… Procedures with subroutines.
Co-authored-by: Artyom Abakumov <[email protected]>
…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
… ‘{0,N}’ doesn't work as expected.
Thanks to Pavel Zotov.
* 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
…imitive estimation for hash vs loop semi-joins
Member
Author
|
More complete implementation (enabled by default and so far without an option to disable it) is ready for v6. It adds a (limited but still) choice between nested loop and hash semi-join algorithms to be used. Optimization aspects are to be further improved in the master branch later. |
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.
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.