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 configurable GetAllElements Limit to tinkerpop #2989

Closed
t92549 opened this issue Jun 28, 2023 · 0 comments · Fixed by #3188
Closed

Add configurable GetAllElements Limit to tinkerpop #2989

t92549 opened this issue Jun 28, 2023 · 0 comments · Fixed by #3188
Assignees
Labels
feature A proposed new feature tinkerpop Specific to/touches the tinkerpop module
Milestone

Comments

@t92549
Copy link
Contributor

t92549 commented Jun 28, 2023

Describe the new feature you'd like
There should be a configurable limit to the amount of elements returned in a GetAllElements by tinkerpop. This should use the Limit operation and be configurable. Perhaps it could use a TraversalStrategy

Why do you want this feature?
So gremlin users don't accidentally use GetAllElements and create a performance issue

Describe alternatives you've considered
If Gaffer had a property index, then a TraversalStrategy could be added to use that instead, as described in #277 (comment)

@t92549 t92549 added enhancement Improvement to existing functionality/feature tinkerpop Specific to/touches the tinkerpop module labels Jun 28, 2023
@t92549 t92549 changed the title Add GetAllElements Limit to tinkerpop Add configurable GetAllElements Limit to tinkerpop Jun 28, 2023
@GCHQDeveloper314 GCHQDeveloper314 added this to the Backlog milestone Jul 7, 2023
GCHQDeveloper314 pushed a commit that referenced this issue May 1, 2024
* Add configurable GetAllElements limit to tinkerpop

* apply GetAllElements limit to edges

* move limit config from op_options to seperate property

* add tests for missing limit

* Set default limit
@GCHQDeveloper314 GCHQDeveloper314 modified the milestones: Backlog, v2.2.1 May 1, 2024
@tb06904 tb06904 added feature A proposed new feature and removed enhancement Improvement to existing functionality/feature labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A proposed new feature tinkerpop Specific to/touches the tinkerpop module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants