Re: PostgreSQL 9.1 : why is this query slow?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Joost Kraaijeveld" <J(dot)Kraaijeveld(at)Askesis(dot)nl>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: PostgreSQL 9.1 : why is this query slow?
Date: 2011-11-28 17:05:20
Message-ID: 4ED36AF0020000250004354F@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl> wrote:

> This query goes faster (6224 ms, but I am not sure it gives the
> correct answer as the result differs from my Java program):

It seems clear that you want to see words which appear with all
three types of files, but it's not clear what you want the count to
represent. The number of times the word appears in filetype 'n'
references (as specified in your second query)? The number of
permutations of documents which incorporate one 'f' document, one
's' document, and one 'n' document (as specified in your first
query). Something else, like the total number of times the word
appears?

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Joost Kraaijeveld 2011-11-28 17:23:02 Re: PostgreSQL 9.1 : why is this query slow?
Previous Message Joost Kraaijeveld 2011-11-28 16:57:49 Re: PostgreSQL 9.1 : why is this query slow?