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
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.
The text was updated successfully, but these errors were encountered:
Using
evennia.utils.idmapper.models.SharedMemoryModel
instead ofdjango.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
todb_field
). That would require a major migration, but one that might be very useful in the end.The text was updated successfully, but these errors were encountered: