CDillinger wrote:
Did you trace the statement that is being executed?
Yes, the statement itself is fast.
CDillinger wrote:
Is there an index on the column "someid"?
There is an index for that column.
CDillinger wrote:
Is your DB perfoming a full table scan or does it use some other index that's not suitable you that statement?
As there is an index for the column that one is used.
CDillinger wrote:
What does EXPLAIN PLAN (or whatever you DB uses) tell you about the statement?
That the statement is fast.
CDillinger wrote:
Is there only one statement or does the spring template execute more statements?
It is only one statement.
The problem is not the statement itself. It is very slow because of the transaction log that has to be written for 1 million rows.