![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The function in question does some selects on the table that is being inserted and without the indexes working it ends up taking a very long time. unfortunatly I can't supppy any of the plpgsql function code. |
#3
| |||
| |||
|
|
I just installed 8.0 RC1 and then restored my database which was working perfectly on 7.4.5. I have a function that imports rows from a comma seperated file and on 7.4.5 using this same function I could get around 1000 rows every 2.5 seconds, now with 8.0 RC1 this has gone way up and it seems to be because it is not using the indexes defined on the table. |
#4
| |||
| |||
|
|
Tony Caduto <tony.caduto (AT) amsoftwaredesign (DOT) com> writes: I just installed 8.0 RC1 and then restored my database which was working perfectly on 7.4.5. I have a function that imports rows from a comma seperated file and on 7.4.5 using this same function I could get around 1000 rows every 2.5 seconds, now with 8.0 RC1 this has gone way up and it seems to be because it is not using the indexes defined on the table. Have you done an ANALYZE or VACUUM ANALYZE since loading the data? regards, tom lane |
![]() |
| Thread Tools | |
| Display Modes | |
| |