Am 06.11.2012 21:24, schrieb Petr
Praus:
On 6 November 2012 14:17, Gunnar "Nick" Bluth <gunnar.bluth@xxxxxxxxxxx> wrote: Well, you do have indices, as we can clearly see.
I had been wondering why you didn't have any indices, tbth. However, the execution times still grow with work_mem, which is interesting independent of the actual plan change...
Oh, no worries there... this is by far the most interesting challenge I've encountered in months ;-) But I do admit that I've reached the end of the ladder now. No idea how you can improve your runtime yet. Probably - using full text search on "personinfo" - try different join_collapse_limit / from_collapse_limit / enable_hashjoin values The most pragmatic approach is probably to just stick with work_mem = 1MB (or less) ;-), but that may potentially bite you later. -- Gunnar "Nick" Bluth RHCE/SCLA Mobil +49 172 8853339 Email: gunnar.bluth@xxxxxxxxxxx __________________________________________________________________________ In 1984 mainstream users were choosing VMS over UNIX. Ten years later they are choosing Windows over UNIX. What part of that message aren't you getting? - Tom Payne |