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
LIKE
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)