Re: [RFC] How about changing the default value of defaultRowFetchSize?
| От | Mark Rotteveel |
|---|---|
| Тема | Re: [RFC] How about changing the default value of defaultRowFetchSize? |
| Дата | |
| Msg-id | 7c43ae3c-c12c-878d-c699-d37bf60cf6f9@lawinegevaar.nl обсуждение исходный текст |
| Ответ на | Re: [RFC] How about changing the default value of defaultRowFetchSize? (Jorge Solórzano <jorsol@gmail.com>) |
| Ответы |
Re: [RFC] How about changing the default value of defaultRowFetchSize?
Re: [RFC] How about changing the default value of defaultRowFetchSize? |
| Список | pgsql-jdbc |
On 20-10-2016 19:30, Jorge Solórzano wrote: > So if the driver internally handle fetch size 0 == fetch size 100, > that's what i call an hidden inconsistent behavior. > > Don't get me wrong, it make sense to switch defaultRowFetchSize to > "100", but a call to getFetchSize() should be == 100, not 0. And that is how it should work, however according to the JDBC specification (or at least: that is how I read it), Statement.setFetchSize(0) means "use driver default fetch size". On the other hand, drivers are also free to ignore fetch size hints. Mark -- Mark Rotteveel
В списке pgsql-jdbc по дате отправления: