by zeroimpl · 7y ago · 0 comments
If you had 10 different counters (maybe in ten different tables) and a mechanism for round-robin or randomly selecting which counter gets incremented/decremented would that allow ten concurrent transactions at once?
The query to return the total count would then need to sum the 10 individual counters, which should be extremely fast.
Or is the concurrency limitation here caused by the trigger on the counted table itself, not the writes performed by the trigger?