public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Tieson Molly <[email protected]>
Cc: [email protected]
Subject: Re: substring index what is better way to query
Date: Tue, 20 Jun 2017 10:45:47 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CADPSLQbeeAev3aYa4pfmHZF9dJAderXzw_sKywsGzxPjvNn1AQ@mail.gmail.com>
References: <CADPSLQaAGZ6jxDhqmv2k5YcLiLXPSfdEU7c9wBEAQT40YAsH2w@mail.gmail.com>
	<[email protected]>
	<CADPSLQbeeAev3aYa4pfmHZF9dJAderXzw_sKywsGzxPjvNn1AQ@mail.gmail.com>
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgsql-performance>

Tieson Molly <[email protected]> writes:
> is there a different construct than the Similar To that would work?

> I know for certain that the first few characters could be different due to
> the nature of geohashes.  So I may not be able to optimize the prefix
> aspect in some cases.

Depending on what patterns you're looking for, it's possible that a
trigram index (contrib/pg_trgm) would work better.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance




reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: substring index what is better way to query
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox