Re: What is the fastest way to get a resultset

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Bupp Phillips <hello(at)noname(dot)com>
Cc: psql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: What is the fastest way to get a resultset
Date: 2003-08-27 19:20:24
Message-ID: Pine.LNX.4.33.0308271320130.1781-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 24 Aug 2003, Bupp Phillips 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?

Have you tried declaring a cursor?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message N.K. 2003-08-27 19:28:18 Pg_dump : Can I specify the Password ?
Previous Message Vivek Khera 2003-08-27 18:54:43 Re: Linux ready for high-volume databases?