-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caching visits in the request.session seems like a good idea, but it's causing problems under load - leading to a lot of django.db.IntegrityError warnings whilst trying to save duplicate hashes. Back to the route 1 approach - just look it up in the database. Adds a db read on each request. If that becomes an issue I'll revisit caching. Lesson learned again - always go simple.
- Loading branch information
1 parent
7152d84
commit c0561b0
Showing
4 changed files
with
29 additions
and
84 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-user-visit" | ||
version = "0.3.3" | ||
version = "0.4" | ||
description = "Django app used to track user visits." | ||
license = "MIT" | ||
authors = ["YunoJuno <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters