From: Arnaud Lesauvage <thewild@freesurf.fr>
To: Magnus Hagander <mha@sollentuna.net>
Cc: pgsql-odbc@postgresql.org
Cc: Dave Page <dpage@vale-housing.co.uk>
Cc: Ludek Finstrle <luf@pzkagis.cz>
Subject: Re: Slow query through ODBC
Date: Fri, 10 Feb 2006 12:23:52 +0100
Message-ID: <43EC77C8.5090403@freesurf.fr> (raw)
In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE6C7FDA@algol.sollentuna.se>
References: <6BCB9D8A16AC4241919521715F4D8BCE6C7FDA@algol.sollentuna.se>
>> I have splitted the data into 4 fields.
>> The largest field was ~23.000 characters long, so I made 4
>> fields containing. The first one contains the first 6000, the
>> second one from 6001 to 12000, etc...
>> The query took about half the time to run !
>
> Interesting. Did it make any difference to the timings in psql and/or pgadmin?
No, not at all. Actually, it even runs a tiny bit slower in
pgAdmin (2.05 sec vs 1.95 for the "one large field" version).
>> Yes, I really don't understand either !
>> But even though all use libpq.dll, they might not handle the
>> data the same way. Mayboe ODBC needs to check for data type,
>> field length, etc... and the other frontends do not need this
>> kind of information ?
>
> Hm. That's an interesting observation. When you do a query with ODBC, does it do any "extra queries" automatically on the system tables? Enable statement logging on the server and see if something weird shows up.
No, no query on the system tables.
I am not very familiar with the log though, maybe Ludek could tell
us more about that ?
Regards
--
Arnaud
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-odbc@postgresql.org
Cc: thewild@freesurf.fr, mha@sollentuna.net, dpage@vale-housing.co.uk, luf@pzkagis.cz
Subject: Re: Slow query through ODBC
In-Reply-To: <43EC77C8.5090403@freesurf.fr>
References: <6BCB9D8A16AC4241919521715F4D8BCE6C7FDA@algol.sollentuna.se> <43EC77C8.5090403@freesurf.fr>
* 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