-
Notifications
You must be signed in to change notification settings - Fork 107
Make it possible to load no permutations at all #2587
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Johannes Kalmbach <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2587 +/- ##
==========================================
+ Coverage 91.52% 91.54% +0.01%
==========================================
Files 479 479
Lines 41177 41197 +20
Branches 5474 5482 +8
==========================================
+ Hits 37688 37714 +26
+ Misses 1910 1904 -6
Partials 1579 1579 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Johannes Kalmbach <[email protected]>
joka921
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting done:)
|
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
# Conflicts: # src/libqlever/Qlever.h
Signed-off-by: Johannes Kalmbach <[email protected]>
RobinTF
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two comments.
| load(sop_); | ||
| } else { | ||
| if (dontLoadPermutations_) { | ||
| // Set all permutations to nullptr to indicate they are not loaded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, the term "loaded" becomes ambiguous. There already is Permutation::isLoaded. Can't you use that instead and just prevent the reading from disk part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this doesn't work, as this function is also called during the index building when the permutation is not yet loaded.
I agree that this is unfortunate, but for now I will leave this.
Signed-off-by: Johannes Kalmbach <[email protected]>
Overview
Conformance check passed ✅No test result changes. |
|



Add an options to libqlever to load an index without its permutations.
This index can still be used to answer queries that don't depend on the permutations (i.e. don't contain any triples), because they for example rely on the named query cache.
This allows for efficient scenarios where all queries can be answered from the named query cache, so the files from the permutations don't even have to be present.