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

Limit in-memory buffering while sorting quads #155

Open
jacoscaz opened this issue Jan 27, 2023 · 0 comments
Open

Limit in-memory buffering while sorting quads #155

jacoscaz opened this issue Jan 27, 2023 · 0 comments

Comments

@jacoscaz
Copy link
Owner

Whenever a specific combination of query and indexes leads to in-memory sorting/ordering of quads, the entire result set needs to be buffered. This may lead to crashes if the result set is big enough to make the process run out of memory, even in the absence of an actual bug.

We should have configurable thresholds and failure strategies to make the store behave in a predictable and easy-to-understand fashion. The threshold should be expressed as the maximum number of quads that the store may buffer. The set of strategies could be comprised of:

  • crashing the process
  • throwing an exception
  • print a warning to stdout or stderr
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

No branches or pull requests

1 participant