Re: Select performance vs. mssql - Mailing list pgsql-performance

From mark durrant
Subject Re: Select performance vs. mssql
Date
Msg-id 20050524191328.58243.qmail@web53110.mail.yahoo.com
Whole thread Raw
In response to Select performance vs. mssql  (mark durrant <markd89@yahoo.com>)
Responses Re: Select performance vs. mssql  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
I'm far from an expert, so this may be off-base... but
perhaps a suggestion would be to allow a hint to be
sent to the optimizer if the user doesn't care that
the result is "approximate" maybe then this wouldn't
require adding more overhead to the indexes.

MSSQL has something like this with (nolock)
i.e. select count(*) from customers (nolock) where
name like 'Mark%'

Regardless, I'm very impressed with PostgreSQL and I
think we're moving ahead with it.

Mark

--- Bruno Wolff III <bruno@wolff.to> wrote:
> On Tue, May 24, 2005 at 08:36:36 -0700,
>   mark durrant <markd89@yahoo.com> wrote:
> >
> > --MSSQL's ability to hit the index only and not
> having
> > to go to the table itself results in a _big_
> > performance/efficiency gain. If someone who's in
> > development wants to pass this along, it would be
> a
> > nice addition to PostgreSQL sometime in the
> future.
> > I'd suspect that as well as making one query
> faster,
> > it would make everything else faster/more scalable
> as
> > the server load is so much less.
>
> This gets brought up a lot. The problem is that the
> index doesn't include
> information about whether the current transaction
> can see the referenced
> row. Putting this information in the index will add
> significant overhead
> to every update and the opinion of the developers is
> that this would be
> a net loss overall.



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Need help to decide Mysql vs Postgres
Next
From: PFC
Date:
Subject: Re: Need help to decide Mysql vs Postgres