Repository navigation
testkit(derby): close(key) drops the key's in-memory database; a hash join may hold 64 MB of a table - #69
Merged
Conversation
Derby keeps an in-memory database for the whole JVM until it is dropped, its connections closed or not. A caller that opens one database per key gives it back with close(key), as with H2 and DuckDB; close() drops every database the provider opened. Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
Derby gives a hash join 1 MB per table by default and joins a larger derived table by nested loops, once per row of the other side. The test kit raises derby.language.maxMemoryPerTable to 64 MB. Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
|
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.


DerbyDatabaseProvider.close(key)drops the in-memory database of the key (drop=true), as the H2 and DuckDB providers do;close()drops every database the provider opened.derby.language.maxMemoryPerTableto 64 MB where it is not set: above 1 MB per table, Derby's default, it joins a derived table by nested loops instead of a hash join.