[Feature] Enhancement request: Make Query.DEFAULT_CAPACITY configurable via server properties
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with org.apache.hugegraph.backend.query.Query and trace how server properties are defined and loaded. Identify the existing tests for query limits or server configuration, then verify that the capacity can be set through a server property and that the configured value is reflected in limit handling. Document the property and its default if documentation files are identified.
Written by the indexing model from the issue text.
Description
Feature Description (功能描述)
Problem Statement
The current implementation in org.apache.hugegraph.backend.query.Query class uses a hard-coded DEFAULT_CAPACITY value of 800,000 records:
public static final long DEFAULT_CAPACITY = 800000L; // HugeGraph-777
This limitation creates the following problems:
- When executing large graph queries that exceed this limit, users encounter the following error:
org.apache.hugegraph.exception.LimitExceedException: Too many records(must <= 800000) for the query: `Query * from EDGE_LABEL_INDEX where id prefix with 0x45493a2d323a4e00`
- This fixed limit doesn't account for varying server capabilities - servers with substantial memory and processing power are still constrained by this arbitrary limit.
- It forces users to implement complex client-side pagination logic for legitimate use cases that need to process more records.
- The limit isn't documented prominently in user documentation, leading to confusion when users encounter this error.
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 637
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/hugegraph
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
All issues in apache/hugegraph
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100