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().