Re: Serious performance problem

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Tille, Andreas" <TilleA(at)rki(dot)de>
Cc: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Serious performance problem
Date: 2001-11-02 08:33:57
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA41EB3E6@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > so it's linear growth here
> This is what my colleague was afraid of: We would have linear growth
> compared to the log(n) growth which is to be expected on MS SQL server

This is not true, since the index scan also neads to read the leaf pages
in MS Sql. The number of leaf pages grows linear with number of rows
that qualify the where restriction.

R = number of rows that qualify
--> O(R + log(R))

The pg measurements showed, that PostgreSQL query performance can be
expected
to stay nearly the same regardless of number of rows in the table as
long as
the number of rows that qualify the where restriction stays constant.
The response time is linear to the number of rows that qualify the where

restriction, but that linear behavior is also expected with MS Sql.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-11-02 08:48:21 Re: Posgresql 7.2b1 crashes
Previous Message Hiroshi Inoue 2001-11-02 06:15:32 Re: compiler warnings in ODBC