Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ Optimized metric route processing to O(N) by creating a mapping of routes direct
## 2024-07-13 - [Optimize Export Dictionary FK lookups]
**Learning:** Found O(N * C * E) performance bottleneck in ERD export dictionaries due to repeated array searching with `edges.some()` inside a nested loop over nodes and columns.
**Action:** Replace repeated linear array scans for edges by precomputing O(1) Set lookups of foreign key column handles per node before looping.
## 2026-07-20 - React Flow Cache for Derived State
**Learning:** For React Flow performance during drag events (60fps updates), avoiding creating new `data` objects in derived state (like `visibleNodes`) is crucial as it breaks `React.memo` and forces full re-renders of massive UI elements like tables.
**Action:** When filtering or enriching nodes (e.g., adding `isDimmed` / `isHighlighted`), use a `WeakMap` keyed by the stable `node.data` reference to cache decorated state, preserving object identity across animation frames.
Loading
Loading