Re: External search engine, advice - Mailing list pgsql-hackers

From mlw
Subject Re: External search engine, advice
Date
Msg-id 3B08306F.E419EB05@mohawksoft.com
Whole thread Raw
In response to External search engine, advice  (mlw <markw@mohawksoft.com>)
List pgsql-hackers
Andrew McMillan wrote:
> 
> Tom Lane wrote:
> >
> >         begin;
> >         select * from foo where x = functhatreadsbar();
> >         update bar ...;
> >         select * from foo where x = functhatreadsbar();
> >         end;
> >
> > does not give you the desired results.
> 
> But why would you be marking the function 'iscachable' if you wanted to see the
> change there?
Because if there is an index on 'x' you would want to use it instead of
performing a full table scan. If table 'foo' has millions of records, and
functhatreadsbar() return one value, an operation that can take milliseconds,
not takes seconds with no benefit.


pgsql-hackers by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: Re: External search engine, advice
Next
From: "Vadim Mikheev"
Date:
Subject: Re: Plans for solving the VACUUM problem