From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Michael A(dot) Olson" <mao(at)sleepycat(dot)com>, Matthias Urlichs <smurf(at)noris(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Performance (was: The New Slashdot Setup (includes MySql server)) |
Date: | 2000-05-19 19:52:44 |
Message-ID: | 200005191952.PAA20370@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
> "Michael A. Olson" <mao(at)sleepycat(dot)com> writes:
> > Third, we had to abstract a lot of the hard-coded table scans in
> > the bowels of the system to call a routine that checked for the
> > existence of an index on the system table, and used it.
>
> The way that we've been approaching this is by switching from hard-coded
> sequential scans (heap_getnext() calls) to hard-coded indexscans
> (index_getnext() calls) at places where performance dictates it.
>
> An advantage of doing it that way is that you don't have the
> bootstrapping/circularity problems that Mike describes; the code doesn't
> need to consult pg_index to know whether there is an index to use, it
> just has the necessary info hard-coded in. For the same reason it's
> very quick.
I like hard-coded. There aren't many of them, last time I looked.
Maybe 5-10 that need index scan. The rest are already done using the
catalog cache.
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2000-05-19 19:54:20 | Re: Performance (was: The New Slashdot Setup (includes MySql server)) |
Previous Message | Tom Lane | 2000-05-19 19:35:04 | Re: Performance (was: The New Slashdot Setup (includes MySql server)) |
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2000-05-19 19:54:20 | Re: Performance (was: The New Slashdot Setup (includes MySql server)) |
Previous Message | Tom Lane | 2000-05-19 19:35:04 | Re: Performance (was: The New Slashdot Setup (includes MySql server)) |