Debate-map should be more resilient to concurrent update commands. (which sometimes cause claimminer map generations to fail)
So for example:
- We could reduce the isolation level for the transactions, eg. from Serializable to Repeatable Read. (perhaps selectively, when just updating the user's edit-count?)
- Or we could change the way that "edit count" is stored, to reduce the chance/possibility of contention. (eg. postgres might have a native way to increment a number in a way that never has concurrency errors)
- Or (for this specific case) a fix would also be to not update that "edit count" value when claim-miner is doing it for a map generation.