PostgreSQL LIKE query performance variations

后端 未结 8 2557
青春惊慌失措
青春惊慌失措 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:25

    Please Execute below mentioned query for improve the LIKE query performance in postgresql. create an index like this for bigger tables:

    CREATE INDEX  ON  USING btree ( text_pattern_ops)
    

提交回复
热议问题