Anecdotal JDBC vs ODBC bulk export performance - Mailing list pgsql-odbc

From John Kew
Subject Anecdotal JDBC vs ODBC bulk export performance
Date
Msg-id CY1PR0301MB197884AF4ADFD99644E9E902CCF20@CY1PR0301MB1978.namprd03.prod.outlook.com
Whole thread Raw
Responses Re: Anecdotal JDBC vs ODBC bulk export performance  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-odbc

The open source JDBC driver appears to outperform the ODBC driver when executing bulk extract queries of the form: "SELECT * from [Blah] Limit [n]" - We are just measuring the raw rows per second from this query for pulling all the rows out. After playing with the FetchSize in the ODBC driver we have improved performance significantly but are there any other techniques; tools or tips which you would suggest for further improving performance? 


ReadOnly does not appear to have a significant effect. The JDBC connection string is using the default settings and setFetchSize is not called on the JDBC driver. We have not yet started profiling the ODBC driver. For this quick test we are also not using column binding on the ODBC side; but we are calling SQLFetch to count the total # of rows returned. Essentially the same thing occurs on the JDBC side.


-John

pgsql-odbc by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: psqlODBC 08.03- Supportability
Next
From: Dave Cramer
Date:
Subject: Re: Anecdotal JDBC vs ODBC bulk export performance