Re: [h2] Extremely slow update performance

104 views
Skip to first unread message
Message has been deleted

Noel Grandin

unread,
Mar 5, 2025, 2:35:29 AMMar 5
to h2-da...@googlegroups.com
try using EXPLAIN PLAN to see what the execution is doing

Andrei Tokar

unread,
Mar 7, 2025, 7:13:24 PMMar 7
to H2 Database
Generally, it is not a good idea to update 100,000+ rows in a single transaction. Try split it into some batches, lets say of 1,000 or 10,000 rows each

who...@gmail.com

unread,
Mar 8, 2025, 9:07:01 AMMar 8
to H2 Database
Thanks for the tips.  I did try limiting it to fewer rows.

I didn't mean to delete the OP, I meant to forward it to someone else.

If someone else sees this question, the content of the first post talked about an update query that involved a single table, where the value stored in a weight column was updated based on the value in a count column divided by some constant.

E.g.:  UPDATE SCORES SET WEIGHT = CNT / 5.7

Reply all
Reply to author
Forward
0 new messages