From: Magnus Naeslund(f) <mag@fbab.net>
To: Bupp Phillips <hello@noname.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: What is the fastest way to get a resultset
Date: Mon, 25 Aug 2003 22:37:24 +0200
Message-ID: <007f01c36b48$b0f06df0$f80c0a0a@mnd> (raw)
References: <bidplp$pcn$1@news.hub.org>
Bupp Phillips <hello@noname.com> wrote:
> I'm very new to Postgresql, so don't beat me up to bad if you see a
> problem, just inform me what I've done wrong.
>
> I'm use Postgresql 7.2 (PeerDirect's Windows port) on Win2000 384MB
> RAM 10GB of Free space 800 Mhz, using the ODBC driver 7.03.01.00.
>
> I have a table that has 103,000 records in it (record size is about
> 953 bytes) and when I do a select all (select * from <table>) it
> takes a whopping 30 secs for the data to return!!
>
> SQLServer on the other hand takes 6 secs, but you can also use what is
> called a firehose cursor, which will return the data in < 1 sec.
>
> I have done everything that I know how to speed this up, does anyone
> have any advise?
>
Probably you need to fetch more than one row at a time.
I made that misstake once myself :)
Magnus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mag@fbab.net, hello@noname.com
Subject: Re: What is the fastest way to get a resultset
In-Reply-To: <007f01c36b48$b0f06df0$f80c0a0a@mnd>
References: <bidplp$pcn$1@news.hub.org> <007f01c36b48$b0f06df0$f80c0a0a@mnd>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox