plc_control/crates/app_feeder_distributor/src
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
..
control Clean up clippy warnings and improve code organization 2026-04-21 19:49:27 +08:00
handler Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00
app.rs Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00
event.rs Cache unit/equipment codes for event messages 2026-04-22 08:21:46 +08:00
handler.rs Remove dead handler re-exports from feeder 2026-04-21 19:32:20 +08:00
lib.rs Clean feeder core dependency boundaries 2026-04-21 16:22:11 +08:00
main.rs feat(feeder): create dedicated feeder distributor app crate 2026-04-16 12:38:58 +08:00
router.rs Move shared feeder plumbing into core 2026-04-21 16:04:03 +08:00