> >You don't need to re-index the indexes, you need to vacuum the tables. > >http://www.postgresql.org/docs/current/static/sql-vacuum.html > My first idea was to throw away table BALANCE and work without it. I even created a PL/SQL function for real-time calculation of article balances. But after some time of thinking I realized that this design will constantly slow down, year after year - it will have to work with more and more records. So I rewrote my script for data transfer, using INSERTs with multiple VALUES and now running time suddenly shortened - it is now 496 seconds for about 837 000 records. But it is still interesting for me why running time was increasing with each run (it may be still increasing even with thenew script). ----------------------------------------------------------------- Всичко за Евро 2008 !!! http://sportni.bg/euro2008/
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера