These three queries produces the same result and took 183 ms, 247 ms and 329 ms !
Remember:
1. Always specify fts configuration, see queries 1 and 2. The difference in plans is
Sort Key: ((fts <=> '''tupl'''::tsquery)) - 183 ms
Sort Key: ((fts <=> to_tsquery('tuple'::text))) - 247 ms
to_tsquery(regconfig, text) is immutable and is
(
Read more... )
Comments 2
Reply
Reply
Leave a comment