plc_control/crates/app_feeder_distributor
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
..
src Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00
tests feat(feeder): create dedicated feeder distributor app crate 2026-04-16 12:38:58 +08:00
Cargo.toml feat(feeder): create dedicated feeder distributor app crate 2026-04-16 12:38:58 +08:00