Skip to content

Find a deeper fix for postgres concurrency issues, re. multiple commands updating a map's/user's edit-count #332

@Venryx

Description

@Venryx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🏚️ Mid-term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions