Skip site navigation (1) Skip section navigation (2)

Re: pgsql vs odbc and speed: clarification required

From: "Henshall, Stuart - Design & Print" <SHenshall(at)westcountry-design-print(dot)co(dot)uk>
To: 'Glenn' <glenn(at)pip(dot)com(dot)au>, pgsql-novice(at)postgresql(dot)org
Subject: Re: pgsql vs odbc and speed: clarification required
Date: 2002-12-19 10:06:33
Message-ID: E382B5D8EDE1D6118DBE0008C759BCD6116B41@WCPEXCHANGE (view raw or flat)
Thread:
Lists: pgsql-novice
Glenn wrote:
> Hi all
> I get the gist from all the reading that using odbc - specifically
> with access as a front end, but also generally, requires that apps be
> designed so that a minimum of data is moved across the network,
> presumably most data manipulation be done with passthrough queries or
> on small recordsets, BUT are these times below indicative of a
> problem? 
> 
> It takes me about 66 seconds using psql to select about 40,000 records
> from a slow (P150) remote machine and dump them localy to a 10Mb html
> file using psql -h server -d mydb <myqry.sql >myqry.html
> 
> BUT.. From access it takes several hours. Using fetch and declare the
> first hundred seem available after several minutes (say 30 minutes),
> but to browse to the last record - is futile, no response after 6
> hours - and if I understand the log file correctly having only select
> 10700 records. 
> 
> PgAdminII (which I understand relies on odbc) dies after say 30min
> with 'out of string space' error (presumably due to size of result)
> 
> The reason I need to fetch 40K records is that it is used in an
> "insert into" statement - which If I execute from an access query is
> unusable (presumably) due to the speed of the select. Its quicker to
> use psql to create a text file, import it then export it across or
> insert into from the local access table.
> (using a passthrough takes about 1 minute).
> 
> After all that, the question is should the odbc link be _this_ slow
> given the network is not the problem even though its only 10mb and the
> server is a dog -- i.e. if psql can do it, is odbc not doing its just
> slow or do I have a config/other problem?
> 
> --
> Glenn <glenn(at)pip(dot)com(dot)au>
> 
It sounds like you might have logging or tracing switched on, which will
have a BIG impact on performance. Check under both the global and datasource
bits of the psqlODBC setup. Also check under the tracing tab of the ODBC
manager that tracing is not operating.
hth,
- Stuart

pgsql-novice by date

Next:From: Henshall, Stuart - Design & PrintDate: 2002-12-19 13:44:24
Subject: Re: Access boolean vs pg bool
Previous:From: GlennDate: 2002-12-19 09:09:04
Subject: Access boolean vs pg bool

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group