[OPTIMIZATION] Database & Query Performance - src/lib/db.ts #54
Labels
No labels
blocked:depends-p1
blocked:gate-research
blocked:lint-failed
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
data-loss
documentation
enhancement
feature-request
in-progress
needs-decompose
needs-triage
pwa
quickfix
security
security/high
security/medium
test
test-coverage
triage-approved
vault
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_kin_app_sync#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Critical Issues (7)
getUpcomingEvents: Full table scan + JS filter instead of indexed range query
db.dateEvents.toArray()+db.people.toArray()+ JS filter[personId+date], usewhere("date").between()getFamilyEventsForHousehold: Full scan + JS filter on
participants.personIdparticipants.personIdor denormalizegetUpcomingFamilyEvents: Full scan + JS filter on date
where("date").between()getOverduePeople: Loads all people + JS filter
[lastContact, contactFrequencyGoal]searchPeople: Full scan with complex string matching
getPeopleByTag: Full scan on array field
deletePerson: 4 sequential deletes
Promise.allparallel deletesHigh Issues (2)
.toArray()loads entire tables into memoryMedium Issues (2)
find()for person by ID - use MapgetUpcomingEventssorts in JS - let IndexedDB sort via index