If you are inserting a few rows per minute, I don't think array insert or
Quote:
db2import is going to help at all.
>
If you are using C++, I assume you can use static SQL (pre-compile, compile
C code, bind package), which is the fastest way to do it. With static SQL
you would use host variables (which is similar in concept to parameter
markers).
|
Hello,
Several incoming connections insert approx 360k rows per minute.
Currently, my application design has threads that request a connection
to the pool and start concurrent multi-row inserts (no parameter
markers). The system is IO-Bound.
I am trying to propose a different application design, where inserts
would be made by an import batch process (maybe another thread ??)
Instead of executing several 300 row inserts, the new design should
accumulate rows in memory up to a certain limit (letīs say, 20k
rows).
After that, an import process will be started to 'flush' rows to the
DB.
I was hoping that the system will benefit from less IO bound
concurrent queries with this approach, and would perform faster. Does
that make sense ?
Or should I start only by changing my current multi-rows inserts to
use prepared statements and parameter markers?
Thanks, Michel.