PostgreSQL LIKE query performance variations
问题 I have been seeing quite a large variation in response times regarding LIKE queries to a particular table in my database. Sometimes I will get results within 200-400 ms (very acceptable) but other times it might take as much as 30 seconds to return results. I understand that LIKE queries are very resource intensive but I just don\'t understand why there would be such a large difference in response times. I have built a btree index on the owner1 field but I don\'t think it helps with LIKE