Add MetadataCache to PlatformContext — a lazy-loaded, cross-app cache of code fields used when formatting event messages. Each persisted AppEvent previously did 1-2 extra SELECTs to look up the code for its human-readable message; after this change the same id hits the cache on all subsequent events. Invalidation: the platform-owned equipment handler invalidates its entry on update/delete; feeder's unit handler does the same for units. Deletes are invalidated for hygiene only — no further events should target a deleted id. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||