What problem does it solve?
All concrete Django models in this repo should use Evennia's SharedMemoryModel, an identity map that caches FK walks and persists a Python object after the first load. This skill encodes usage rules and the identity-map caching discipline to prevent rebuilding complex caching or query-batching infrastructure.
Core Features & Use Cases
- Enforces universal use of SharedMemoryModel for all concrete Django models.
- Ensures correct import path: from evennia.utils.idmapper.models import SharedMemoryModel.
- Prevents unsafe imports that trigger Django setup during import, and guides when to use SharedMemoryModel for caching-heavy or read-mostly data.
- Use Case: optimize lookups on high-traffic models by avoiding repeated database hits through identity-mapped instances.
Quick Start
Migrate all Django models to SharedMemoryModel and start using its identity-map caching.