-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Support to set maxRows as well as fetchSize of Statement #3453
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
Comments
Hello @quaff , Recently, I explained why |
Not every database and every version follows |
Here is an excerpt from the linked article.
The main purpose of limiting rows is performance, so even though |
Some use case requires consuming first n rows of given sql, for example, find latest or top rated n comments of an article, the portable way is query all comments as |
My point is: if the performance matters, you should use the non-portable way. Anyway, I do not strongly oppose your proposal. It is part of the JDBC API after all. |
Closes mybatisGH-3453 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This is standard way to limit results size without writing dialect.
I'd like to prepare PR if the team accepts proposal.
The text was updated successfully, but these errors were encountered: