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
What would be the correct behaviour to handle updates when database is used in shared memory mode?
There is a long running set of gunicorn processes that uses ip2location database in shared memory mode and some side job that updates database file periodically. Does mmap hanles updates itself or its developer responsibility to re-read database?
The text was updated successfully, but these errors were encountered:
Since its a global shared variable it's possible to attach a datetime property to it, so one can store shared variable creation time and refresh it from time to time :)
What would be the correct behaviour to handle updates when database is used in shared memory mode?
There is a long running set of gunicorn processes that uses ip2location database in shared memory mode and some side job that updates database file periodically. Does mmap hanles updates itself or its developer responsibility to re-read database?
The text was updated successfully, but these errors were encountered: