Re: [HACKERS] Sequential scan speed, mmap, disk i/o

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: dg(at)illustra(dot)com (David Gould)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Sequential scan speed, mmap, disk i/o
Date: 1998-05-14 14:54:09
Message-ID: 199805141454.KAA09189@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Very interesting. Is it possible to get the schema, the query, and a
> a sample of the data or a generator program for the data? I am quite surprised
> to see us do so well, I would have guess that the per row overhead would
> have us down far below wc.

Sure.

create table test (x1 int, x2 int, x3 char(10), x4 varchar(50));
insert into test values (3, 8, 'asdf','asdf');

insert into test select * from test; <- continue until test is large

select * from test where x1 = 23423; <- this is what I timed

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Byron Nikolaidis 1998-05-14 14:55:08 Re: [HACKERS] char(8) vs char8
Previous Message Bruce Momjian 1998-05-14 14:51:02 Re: [HACKERS] Sequential scan speed, mmap, disk i/o