plc_control/crates
caoqianming 6c8e5561dc Cache unit/equipment codes for event messages
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>
2026-04-22 08:21:46 +08:00
..
app_feeder_distributor Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00
app_operation_system Clean feeder core dependency boundaries 2026-04-21 16:22:11 +08:00
plc_platform_core Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00