Lew said:
Interesting question.
I expected it to be very significant.
But for the fun of it I tried creating a small test
program.
The results were:
MySQL Connector/J:
INSERT 10000 rows: 1828 milliseconds
SELECT 10000 rows 50 times: 1797 milliseconds
SELECT 1 row 10000 times: 2453 milliseconds
JDBC ODBC bridge:
INSERT 10000 rows: 1781 milliseconds
SELECT 10000 rows 50 times: 5641 milliseconds
SELECT 1 row 10000 times: 3031 milliseconds
MySQL Connector/J:
INSERT 10000 rows: 1656 milliseconds
SELECT 10000 rows 50 times: 1609 milliseconds
SELECT 1 row 10000 times: 2000 milliseconds
JDBC ODBC bridge:
INSERT 10000 rows: 1656 milliseconds
SELECT 10000 rows 50 times: 5609 milliseconds
SELECT 1 row 10000 times: 2891 milliseconds
MySQL Connector/J:
INSERT 10000 rows: 1625 milliseconds
SELECT 10000 rows 50 times: 1578 milliseconds
SELECT 1 row 10000 times: 2000 milliseconds
JDBC ODBC bridge:
INSERT 10000 rows: 1625 milliseconds
SELECT 10000 rows 50 times: 5609 milliseconds
SELECT 1 row 10000 times: 2735 milliseconds
For this particular test program with my versions of the
drivers and my version of MySQL it seems as if:
- INSERT is the same speed
- SELECT is 50%-250% slower
with JDBC-ODBC bridge.
Measurable !!
Arne