PostgreSQL LIKE query performance variations

后端 未结 8 2547
青春惊慌失措
青春惊慌失措 2020-11-22 00:54

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 20

8条回答
  •  醉酒成梦
    2020-11-22 01:20

    Your like queries probably cannot use the indexes you created because:

    1) your LIKE criteria begins with a wildcard.

    2) you've used a function with your LIKE criteria.

提交回复
热议问题