| От | Nic |
|---|---|
| Тема | Re: Server side resultset search (for performance reasons) |
| Дата | |
| Msg-id | 87u18xa4q0.fsf@tapsellferrier.co.uk обсуждение |
| Ответ на | Re: Server side resultset search (for performance reasons) (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-jdbc |
Tom Lane <tgl@sss.pgh.pa.us> writes: > >> The application is returning 300,000 records in some SELECT clause (a > >> ResultSet) this finish the client's JVM memory, so my solution to this > >> was to use the SELECT's LIMIT clause returning 600 records and making > >> the internal logic that when the user gets past the 600th record the > >> application automatically issues another query with LIMIT and OFFSET > >> clauses causing a little delay but this is better than finishing the > >> memory in the client's machine (if you know a better solution or have > >> some advices, please let me know). > > I'm surprised no one has yet suggested using a cursor. Which the JDBC driver in CVS now supports. -- Nic Ferrier http://www.tapsellferrier.co.uk
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера