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

Avoid caching full query result for queries with generic sort and LIM… #121

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

markoszah
Copy link
Member

Queries that do generic sort and also include LIMIT clause, do not need to store that full query result in client memory, as it is done today. The just need to store a max of OFFSET+LIMIT results.

@markoszah markoszah requested a review from connelly38 June 4, 2024 08:59
@markoszah markoszah self-assigned this Jun 4, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 4, 2024
@markoszah markoszah requested a review from gmfeinberg June 4, 2024 09:00

int theLimit = -1;

ArrayList<MapValue> theResults;
Copy link
Member

Choose a reason for hiding this comment

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

Please add some comments here that explain why there are three collections (list, queue, array) and when/how each are used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants