| От | John R Pierce |
|---|---|
| Тема | Re: Is there any method to limit resource usage in PG? |
| Дата | |
| Msg-id | 521AFA85.5000107@hogranch.com обсуждение исходный текст |
| Ответ на | Is there any method to limit resource usage in PG? (高健 <luckyjackgao@gmail.com>) |
| Список | pgsql-general |
On 8/25/2013 11:08 PM, 高健 wrote: > That program is written by Java. > It is to use JDBC to pull out data from DB, while the query joined > some table together, It will return about 3000,000 records. > Then the program will use JDBC again to write the records row by row > , to inert into another table in the DB. why not have SQL do the insert of the data you're querying? is java doing any actually processing on this data thats not practical to do within SQL ? otherwise, if you need to process the data in the client before returning it to the database, you probably should use a cursor so you can batch the data. -- john r pierce 37N 122W somewhere on the middle of the left coast
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера