Open gmart7t2 opened 2 months ago
Good find! One issue though is that after the commit, the write transaction doesn't exist, so we would have to create a new write transaction, se the statistic, and commit again. How long does the final commit usually take?
It can take like 30mins sometimes I think
I think we should just double-commit if it's the first commit. I.e., if it's the first commit and we just comitted, set the statistic and re-commit. The second commit should be very quick.
yes, the second one is negligable
Maybe consider switching the order of these two blocks:
That final commit can take a long time, and should be included in the initial sync time.