perf(citation-verification): cache view + parallelize backend retrieval #369
Reference in New Issue
Block a user
Delete Branch "worktree-citation-verify-perf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
למה
טאב "אימות פסיקה" נטען מחדש בכל כניסה, וגם הטעינה הראשונה לקחה 1.5–3 שניות. אבחון מצא שני שורשים בלתי-תלויים.
מה
Frontend —
web-ui/src/lib/api/citation-verification.tsstaleTime10ש' → 5 דק' +refetchOnMount: false. Radix Tabs מוריד (unmount) את תוכן-הטאב הלא-פעיל, אז מעבר חזרה אחרי חלון 10ש' גרם build מלא מחדש. מוטציות-האימות עדיין מבצעותinvalidateQueries, כך שעריכה מושכת נתון טרי.Backend —
mcp-server/src/legal_mcp/services/case_citation_verification.py_fetch()ומפוזרת עםasyncio.gather. הסדר נשמר (gather), מונהn_verifiedו-seen-sets לכל-טיעון ללא שינוי. טעינה ראשונה ~פי-5 מהירה יותר בתיקים רב-טיעוניים.Invariants
search_library+citation_authority+ radar, רק במקביל במקום בטור.בדיקות
py_compile✅ ·tsc --noEmit✅ (build מלא ב-CI; Turbopack שבור ב-worktree עם symlink).🤖 Generated with Claude Code