Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Suor
on March 27, 2023
|
parent
|
context
|
favorite
| on:
Ban 1+N in Django
Should be easy enough to implement. You only need a context manager that adds 1 to some threadlocal flag on enter and subrracts on exit then check this flag in the monkey patch. Not sure how costly that will be though.
Suor
on March 27, 2023
[–]
Here is an example of such thing
https://github.com/Suor/django-cacheops/blob/8b3a79de29b2545...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: