Re: Slow query through ODBC - Mailing list pgsql-odbc

From Arnaud Lesauvage
Subject Re: Slow query through ODBC
Date
Msg-id 43EC77C8.5090403@freesurf.fr
Whole thread Raw
In response to Re: Slow query through ODBC  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Slow query through ODBC
List pgsql-odbc
>> 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
thesystem 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


pgsql-odbc by date:

Previous
From: "Tim Clarke"
Date:
Subject: Re: LATIN1/9 conversion....
Next
From: Ludek Finstrle
Date:
Subject: Re: LATIN1/9 conversion....