by vlplabs · 9y ago · 0 comments
You can use trgm module to index this kind of queries.
https://www.postgresql.org/docs/9.1/static/pgtrgm.html
https://www.postgresql.org/docs/current/static/pgtrgm.html