Slowdown in zeos
Posted: 20.04.2009, 15:08
Hello, I'm using zeoslib 6.6.4 with postgresql 8.3 latest stable.
My problem is that while the DB works fast (I enabled logging inside postgre) zeos seems to do a huge slowdown clientside.
I do have sortfields but they're not causing it. Keyfields are causing an "internallookup" which seems to be the main culprit.
I'm using fpc 2.2.4 with lazarus trunk. Any hints on how to remedy this would be appreciated.
TZQuery.SQL:
Note that datum_prijatia is indexed and the index is used...
I use a very similar query with same sorting style and all for a different table and that one works quite fast so I'm sure there's some problem. The slowdown happens when I change :p_offset and do Refresh().
My problem is that while the DB works fast (I enabled logging inside postgre) zeos seems to do a huge slowdown clientside.
I do have sortfields but they're not causing it. Keyfields are causing an "internallookup" which seems to be the main culprit.
I'm using fpc 2.2.4 with lazarus trunk. Any hints on how to remedy this would be appreciated.
TZQuery.SQL:
Code: Select all
SELECT * FROM dary
WHERE (datum_prijatia >= :p_od) AND (datum_prijatia <= :p_do)
ORDER BY id
LIMIT 28
OFFSET :p_offset
I use a very similar query with same sorting style and all for a different table and that one works quite fast so I'm sure there's some problem. The slowdown happens when I change :p_offset and do Refresh().