mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-02 02:05:53 +00:00
NOTE: first startup after this commit can take a while due to building index! SQL statement "DELETE FROM HistoricAccountBalances WHERE height >= ?" required a full table scan and so was very slow on VMs/routers. This statement used by HSQLDBAccountRepository.deleteBalancesFromHeight(), itself called during Block.orphan(). Symptoms particularly evident during shutdown where above statement could take upwards of 15 minutes on single-CPU, small-memory VMs! Statement wasn't noticed before as slow-query checking wasn't involved. Slow-query checking now applies to HSQLDBRepository.delete() and HSQLDBRepository.exists() calls. Added test for correct HSQLDB interrupt handling. Fixed some typos.