From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: Comparing user attributes with bitwise operators
Date: Tue, 5 Oct 2004 09:32:38 -0700
Message-ID: <200410050932.38595.josh@agliodbs.com> (raw)
In-Reply-To: <200410050039.24230.patrick@phpforhire.com>
References: <200409160141.37604.patrick@phpforhire.com>
<87sm9eluc3.fsf@stark.xeocode.com>
<200410050039.24230.patrick@phpforhire.com>
Patrick,
First off, thanks for posting this solution! I love to see a new demo of The
Power of Postgres(tm) and have been wondering about this particular problem
since it came up on IRC.
> The array method works quite nicely, especially for the
> columns like "languages" and "seeking" that are multiple choice. However,
> even though this method is fast, I still might opt for caching the results
> because the "real world" search query involves a lot more and will be
> executed non-stop. But to have it run this fast the first time certainly
> helps.
Now, for the bad news: you need to test having a large load of users updating
their data. The drawback to GiST indexes is that they are low-concurrency,
because the updating process needs to lock the whole index (this has been on
our TODO list for about a decade, but it's a hard problem).
--
Josh Berkus
Aglio Database Solutions
San Francisco
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: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com
Subject: Re: Comparing user attributes with bitwise operators
In-Reply-To: <200410050932.38595.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox