Timeout error trying to lock table in h2

前端 未结 8 1613
无人共我
无人共我 2020-12-02 16:39

I get the following error under a certain scenario

When a different thread is populating a lot of users via the bulk upload operation and I was trying to view the li

8条回答
  •  余生分开走
    2020-12-02 17:30

    From a 2020 user, see reference

    Basically, the reference says:

    Sets the lock timeout (in milliseconds) for the current session. The default value for this setting is 1000 (one second).

    This command does not commit a transaction, and rollback does not affect it. This setting can be appended to the database URL: jdbc:h2:./test;LOCK_TIMEOUT=10000

提交回复
热议问题