From: | Bernhard Weisshuhn <bkw(at)weisshuhn(dot)de> |
---|---|
To: | CG <cgg007(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: ltree + gist index performance degrades significantly over a night |
Date: | 2006-02-27 17:24:40 |
Message-ID: | 20060227172440.GA4254@weisshuhn.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Feb 27, 2006 at 09:14:40AM -0800, CG <cgg007(at)yahoo(dot)com> wrote:
> I could probably get even better performance out of the table, at the cost of a
> significant increase in table and index size, by chopping up the columns into
> smaller chunks.
>
> "Hello World" would yield
>
> 'h.e.l.l.o.w.o.r.l.d'
> 'e.l.l.o.w.o.r.l.d'
> 'l.l.o.w.o.r.l.d'
> 'l.o.w.o.r.l.d'
> 'o.w.o.r.l.d'
> 'w.o.r.l.d'
> 'o.r.l.d'
> 'r.l.d'
>
> and using a wildcard search "search_vector ~ 'o.r.l.*'" would jump right to the
> vectors which start with "o.r.l" ...
But with this approch you'd be fine with a normal varchar_ops btree index
for textfields and searching using "like 'world%'", wouldn't you?
Or is the ltree approch more efficient?
I'm not trying to be smart-assed, it's a naive question, since I'm
looking for an efficient substring search solution in postgresql myself.
regards,
bkw
From | Date | Subject | |
---|---|---|---|
Next Message | Emi Lu | 2006-02-27 17:48:33 | Re: A question about Vacuum analyze |
Previous Message | Stephan Szabo | 2006-02-27 17:19:53 | Re: Wish: remove ancient constructs from Postgres |