|
Don't be offended, but did you tried an analyze of your query to see if you could help it a bit by adding indexe(s) on some other fields ?
It may help the engine to limit the number of tuples to select.
Are you doing an ordering too ? This can be a pretty heavy speed penalization, as the engine have to order the datas before going you back the list of them.
If you do, you may have a speed improvement by doing the ordering in the front-end language, or on the result subset.
I haven't worked on pgsql for the last 6 years, so I don't know what changed in the mean time, but at this time it wasn't especially fast (when keeping the atomic transaction log), and I was using a mysql db to "cache" synthetic results of typical select members could run.
Too complex and specific to my previous situation maybe to explain in long upfront, but if you are interested, drop me a msg.
__________________
Listen to the ducky: "This is awesome!!!"
|