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

Explicitly named query #1739

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

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Jan 30, 2025

Implement named cached queries (in RAM)

TODO<joka921>:

1. Unit tests
2. correct cache-clearing (or updates etc.)

Signed-off-by: Johannes Kalmbach <[email protected]>
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 17.54386% with 94 lines in your changes missing coverage. Please review.

Project coverage is 89.76%. Comparing base (49934c0) to head (65caf94).

Files with missing lines Patch % Lines
src/parser/sparqlParser/SparqlQleverVisitor.cpp 3.57% 26 Missing and 1 partial ⚠️
src/engine/Server.cpp 0.00% 23 Missing ⚠️
src/engine/NamedQueryCache.cpp 0.00% 18 Missing ⚠️
src/parser/NamedCachedQuery.h 0.00% 10 Missing ⚠️
src/engine/QueryPlanner.cpp 25.00% 6 Missing ⚠️
src/engine/CheckUsePatternTrick.cpp 0.00% 5 Missing ⚠️
src/engine/QueryExecutionContext.h 0.00% 4 Missing ⚠️
src/engine/ValuesForTesting.h 94.11% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1739      +/-   ##
==========================================
- Coverage   89.94%   89.76%   -0.18%     
==========================================
  Files         395      399       +4     
  Lines       37625    37838     +213     
  Branches     4229     4256      +27     
==========================================
+ Hits        33840    33966     +126     
- Misses       2482     2570      +88     
+ Partials     1303     1302       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1-1 with Johannes, first look, looks great (and works like a charm)

Signed-off-by: Johannes Kalmbach <[email protected]>
# Conflicts:
#	src/engine/CMakeLists.txt
#	src/engine/QueryExecutionContext.cpp
#	src/engine/QueryExecutionContext.h
#	src/engine/Server.cpp
#	test/OperationTest.cpp
Signed-off-by: Johannes Kalmbach <[email protected]>
@sparql-conformance
Copy link

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

Successfully merging this pull request may close these issues.

2 participants