Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Evennia cache through SharedMemoryModel #3

Open
vincent-lg opened this issue Jul 21, 2019 · 0 comments
Open

Use Evennia cache through SharedMemoryModel #3

vincent-lg opened this issue Jul 21, 2019 · 0 comments

Comments

@vincent-lg
Copy link
Owner

Using evennia.utils.idmapper.models.SharedMemoryModel instead of django.db.models.Model will allow to benefit from the Evennia cache. Instead of hitting the database (once or twice per view, depending on the status of the root page), Evennia will cache the requested page so a database hit per page is only necessary if the page isn't already cached in memory.

This would require to change all field names (field to db_field). That would require a major migration, but one that might be very useful in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant