From: | Michael Lewis <mlewis(at)entrata(dot)com> |
---|---|
To: | postggen2020 s <postggen2020(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)postgresql(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>, postgres performance list <pgsql-performance(at)postgresql(dot)org>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
Subject: | Re: Request to help on GIS Query improvement suggestion. |
Date: | 2020-05-22 14:14:29 |
Message-ID: | CAHOFxGrhV7H9gqGnTqRJauVh__q=EGKCkC_RVqbamG49x_Ppcw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-performance |
Your indexes and operators are not compatible. You have added a btree index
on md5 function result and are not using md5 in your query, and also using
LIKE operator not one of the supported ones. I believe it might use a btree
operator (plain value, not md5 result) if you are always searching for
"string starts with ____ but I don't know what it ends with" but you can't
possibly use a btree index where you are putting a wild card at the front.
https://www.postgresql.org/docs/9.5/indexes-types.html
a gist index operators supported-
https://www.postgresql.org/docs/9.5/gist-builtin-opclasses.html
Here's a whole page on full text search, it would be worth a read-
https://www.postgresql.org/docs/9.5/textsearch-tables.html#TEXTSEARCH-TABLES-INDEX
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Lewis | 2020-05-22 14:26:05 | Re: Suggestion to improve query performance of data validation in proc. |
Previous Message | Scott Ribe | 2020-05-22 11:57:46 | Re: Lag clarification with Sync Replication |
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2020-05-22 14:22:10 | Re: pg_dump crashes |
Previous Message | Andreas Kretschmer | 2020-05-22 13:57:50 | Re: pg_dump crashes |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Lewis | 2020-05-22 14:26:05 | Re: Suggestion to improve query performance of data validation in proc. |
Previous Message | postggen2020 s | 2020-05-22 10:53:16 | Request to help on GIS Query improvement suggestion. |