feeding my datasheet search engine database its favourite treat, a whole CPU core

well crap, it knocked over the container and now I've lost three whole CPU cores...

So apparently removing the DISTINCT cuts the query time in half, but it's still very slow...

With DISTINCT: explain.depesz.com/s/cOeV
Without DISTINCT: explain.depesz.com/s/QAIM5

Follow

Where on earth is this remaining sort operation coming from??

· · Web · 1 · 0 · 1

Aha, forgot that UNION also does a uniqueness check. Changing it to UNION ALL fixed that.

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.