On Thu, 21 Dec 2006, Robert Treat wrote:
> On Tuesday 19 December 2006 17:13, Magnus Hagander wrote:
>> John Hansen wrote:
>>> Magnus Hagander Wrote:
>>>>> Archives search is slow. (5+ seconds to search all lists)
>>>> Depends on what you search for ;-) What did you search for?
>>> 'create table'
>> Yeah, that one is definitely the sort. Just the search over all lists
>> for create table takes about 170ms and returns about 6000 hits.
>> Calculating rank value and sorting it takes the rest :(
> Maybe we could add a "click here to see the explain analyze of your search
> query" button. :-)
Just to make clear the problem, why ordinary SE doesn't have such problem -
it'so because all information needed for ranking is available from index
Database based SE, like tsearch2, should be able to work even
without an index, so after search is done, which is very fast, we need to
consult heap to get positional information, weights, etc.
Also, since GiST index is lossy, we must check heap to exclude false hits.
I'm wondering if we could store positional information in GiN index,
which is not lossy !
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
In response to
pgsql-www by date
|Next:||From: Robert Treat||Date: 2006-12-21 21:11:36|
|Subject: Re: PlanetPG on the home page|
|Previous:||From: Robert Treat||Date: 2006-12-21 19:39:24|
|Subject: Re: Search engine|