Search Postgresql Archives

Re: Strange behaviour - performance decreases after each TRUNCATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 >
 >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 the new script).

-----------------------------------------------------------------
Всичко за Евро 2008 !!!
http://sportni.bg/euro2008/


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux