-
Notifications
You must be signed in to change notification settings - Fork 46
Add prefetch rows tweakable #40
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
Conversation
src/connection.rs
Outdated
/// By default, a maximum of 2 rows are returned when the query is first | ||
/// executed. To modify this, use `StmtParam::PrefetchRows(u32)` to customize | ||
/// it. For more information on the difference between this and `FetchArraySize`, | ||
/// see [this writeup](https://blog.dbi-services.com/arraysize-or-rowprefetch-in-sqlplus/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another reference is https://oracle.github.io/node-oracledb/doc/api.html#rowfetching
src/statement.rs
Outdated
@@ -59,6 +59,17 @@ pub enum StmtParam { | |||
/// `StmtParam::FetchArraySize(1)`. | |||
FetchArraySize(u32), | |||
|
|||
/// The number of rows that will be prefetched by the Oracle Client | |||
/// ibrary when a query is executed. The default value is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: ibrary
@daviessm Thanks for the PR and sorry for not replying so long. I don't merge this PR because the new variant |
I'm happy either way - if it's easier for you to do it yourself, go for it! |
I did it by 7ec5577, which closes this PR. |
Partially fixes #39