Any way to make this PostgreSQL count query any faster?
Posted
by Ben Dauphinee
on Stack Overflow
See other posts from Stack Overflow
or by Ben Dauphinee
Published on 2010-06-08T19:09:33Z
Indexed on
2010/06/08
19:12 UTC
Read the original article
Hit count: 190
I'm running a case-insensitive search on a table with 7.2 million rows, and I was wondering if there was any way to make this query any faster?
Currently, it takes approx 11.6 seconds to execute, with just one search parameter, and I'm worried that as soon as I add more than one, this query will become massively slow.
SELECT count(*)
FROM "exif_parse"
WHERE (description ~* 'canon')
© Stack Overflow or respective owner