You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry, @bashu, I do not have a minimal reproduction repository or anything. But I do use it as per the documentation. This is definitely an issue with concurrent hits happening at the same time, so there should be a locking mechanism in place to prevent this.
I run hitcount 1.2.3 on Django 1.11.28
To register a hit, I use the following code, as per the docs:
However, every now and then, when I try to get the hit count on an object, I get the error in the title of this issue.
Sounds like there's a race condition and two HitCounts are created at the same time.
Are you aware of this? Is this an issue with django-hitcount or my code?
Thanks!
The text was updated successfully, but these errors were encountered: