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

Optimise various Executor.fetchOne() methods, which consume the whole ResultSet before throwing an InvalidResultException #1974

Closed
lukaseder opened this Issue Nov 23, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@lukaseder
Copy link
Member

commented Nov 23, 2012

Currently, Executor.fetchOne() methods consume the whole ResultSet before deciding whether to throw an InvalidResultException. This is not optimal, it would be better to consume only the first record, and then check if there are more records or not. This can be achieved with a Cursor, internally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.