From: Mitch Vincent <mitch@venux.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Full text indexing (and errors!)
Date: Sun, 21 May 2000 14:17:34 -0400
Message-ID: <001c01bfc350$d6d8ddc0$0300000a@doot.org> (raw)
References: <00db01bfc345$e5400100$0300000a@doot.org>
<9916.958931894@sss.pgh.pa.us>
> Uh, the query you show below is on "applicants" not on this table ...
> is there an index on applicants' OID column?
No, there is not an index on the applicant OID column.. Since I'm getting
all the records from the applicants table where the string I search for is
in the resumes_fti table, I didn't think and index like that would help
(since I'm qualifying the results based on rows in another table). Am I
wrong in thinking that?
> Isn't that what resume_fti_index is?
Indeed, I'm a complete dork. Disregard the error below, you explained it
nicely :-)
> As far as I can tell, you're already OK on the string search, since
> you are getting an indexscan on resumes_fti. The hash join might
> not be such a bright idea though. I suspect the reason for that
> choice is the large estimate for the number of rows matched by the
> f1.string ~ '^engineer' condition (168041 which seems like a lot).
> How big are these tables really? Have you done a 'vacuum analyze'
> on them?
I have done a vacuum analyze.
select count(app_id) from applicants_resumes;
count
-------
14673
(1 row)
select count(id) from resumes_fti;
count
----------
33462249
(1 row)
In a word. Huge :-)
-Mitch
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mitch@venux.net, tgl@sss.pgh.pa.us
Subject: Re: Full text indexing (and errors!)
In-Reply-To: <001c01bfc350$d6d8ddc0$0300000a@doot.org>
References: <00db01bfc345$e5400100$0300000a@doot.org> <9916.958931894@sss.pgh.pa.us> <001c01bfc350$d6d8ddc0$0300000a@doot.org>
* 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