
Performance issues - WebLogic JDBC driver to MS-SQL
Quote:
> I have a program that is trying to execute numerous INSERTs into an
> SQL Server database via the WebLogic MS-SQL type 4 driver. The code
> runs on a UNIX system. It seems horribly slow, about 210 records per
> minute. Is there some sort of setting that I am missing? I vaguely
> remember a setting in the ODBC manager to create stored procedures
> from prepared statements. Is there something equivalent on the JDBC
> end? I am preparing the statements & executing.
> Partha Dutta
Are you using a prepared statement and if so how many parameters are you
passing? I have found that driver extremely slow when the number of
parameters on a prepared statement exceeds about 8 (depending on parameter
type). Below the limit a statement takes <10ms to run, above the limit it
takes 200ms. The extra time is just spent waiting (CPU utilisation falls
dramatically). I am now using another driver which gives me around 700
inserts per second.
Mark Thornton