3 ms·
FTA: one of the updates might be lost, something we see from time to time. You're right, but it doesn't sound like these are high-contention operations since t
by sp332 13y ago
FTA: one of the updates might be lost, something we see from time to time.
You're right, but it doesn't sound like these are high-contention operations since they currently run without any locks and rarely have problems.
- colanderman 13y agoSorry, I meant high contention on the lock – if they plan on using a coarse-grained lock, I presume it will see high contention (assuming they have many statistics). Obviously if they plan on using one lock per statistic, this isn't a problem, but then they should just be using atomic updates instead.