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

Check if the JPA or Hibernate Query returns a Stream with more than 100 elements #106

Open
vladmihalcea opened this issue Sep 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@vladmihalcea
Copy link
Owner

vladmihalcea commented Sep 2, 2020

Fetching more than 100 records using the Hibernate legacy Query#getStreamResult is an indication that the user might be fetching more data than necessary. A query should return only the data that's needed to render a view or process a certain batch task.

When detecting that the result set contains more than 100 entities, a QueryResultStreamCountEvent should be triggered.

@vladmihalcea vladmihalcea added the enhancement New feature or request label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant