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

Add option --parser-buffer-size for IndexBuilderMain #1698

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

hannahbast
Copy link
Member

@hannahbast hannahbast commented Jan 3, 2025

So far, the buffer size of the parser was hard-coded in src/index/ConstantsIndexBuilding.h to 10 MiB. This was too little for datasets like OSM, which have some very large triples (due to WKT literals of complex geometries). There is now an option --parser-buffer-size with which the default buffer size can be overridden.

While at it, externalize all IRIs and literals (except for the Qlever-internal ones) by default. It has been the default in all our Qleverfiles for quite some time now.

Hannah Bast added 3 commits January 3, 2025 20:34
So far, the buffer size of the parser was hard-coded in
`src/index/ConstantsIndexBuilding.h` to `10 MiB`. This was too little
for datasets like OSM, which have some very large triples (due to WKT
literals of complex geometries). There is now an option
`--parser-buffer-size` with which the default buffer size can be
overridden.
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 98.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.86%. Comparing base (c5e6c80) to head (8d8ed14).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/parser/RdfParser.cpp 95.23% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1698      +/-   ##
==========================================
- Coverage   89.86%   89.86%   -0.01%     
==========================================
  Files         389      389              
  Lines       37287    37307      +20     
  Branches     4204     4204              
==========================================
+ Hits        33509    33526      +17     
- Misses       2478     2483       +5     
+ Partials     1300     1298       -2     

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

@hannahbast hannahbast requested a review from joka921 January 4, 2025 00:28
@sparql-conformance
Copy link

Copy link

sonarqubecloud bot commented Jan 6, 2025

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

Thank you very much, feel free to merge this.

@hannahbast hannahbast merged commit acb6633 into master Jan 8, 2025
24 checks passed
hannahbast added a commit to ad-freiburg/qlever-control that referenced this pull request Feb 12, 2025
…lever index` command (#132)

So far, the `ulimit` was set to `1048576` when the size of the input files is larger than `10 GB`, which is a simplisitic and rough heuristic. In particular, this does not work when the RDF data is produced from the input file and the latter is relatively small compared to the former. Or when the OS allows increasing the `ulimit` but not that much. Now the `ulimit` can also be set explicitly via the option `--ulimit` of the `qlever index` command, or via the variable `ULIMIT` in the `[index]` section of the Qleverfile.

Further, ad-freiburg/qlever#1698 introduced an option `--parser-buffer-size` to `IndexBuilderMain`, see there for the effect. This can now also be set explicitly via the option `--parser-buffer-size` of the `qlever index` command, or via the variable `PARSER_BUFFER_SIZE` in the `[index]` Qleverfile.
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