Skip to content

fix: reduce Kanban DB calls#143

Merged
AdamJ merged 1 commit into
mainfrom
claude/kanban-storage-review-Mr6FL
May 26, 2026
Merged

fix: reduce Kanban DB calls#143
AdamJ merged 1 commit into
mainfrom
claude/kanban-storage-review-Mr6FL

Conversation

@AdamJ
Copy link
Copy Markdown
Owner

@AdamJ AdamJ commented May 26, 2026

Reduce Kanban DB calls from 2-3 per action to 1 per action.

Replace bulk savePlannedTasks useEffect (SELECT + optional DELETE + UPSERT all) with targeted upsertPlannedTask/deletePlannedTask methods called directly from each context callback. Add plannedTasksRef to read current state in callbacks without closing over state. Keep savePlannedTasks for forceSyncToDatabase bulk sync.

Replace bulk savePlannedTasks useEffect (SELECT + optional DELETE + UPSERT all)
with targeted upsertPlannedTask/deletePlannedTask methods called directly from
each context callback. Add plannedTasksRef to read current state in callbacks
without closing over state. Keep savePlannedTasks for forceSyncToDatabase bulk sync.

https://claude.ai/code/session_017ZoZCQ3KPnmCynCFQn3eTL
@AdamJ AdamJ changed the title Reduce Kanban DB calls from 2-3 per action to 1 fix: reduce Kanban DB calls May 26, 2026
@AdamJ AdamJ merged commit 030b49c into main May 26, 2026
3 checks passed
@AdamJ AdamJ deleted the claude/kanban-storage-review-Mr6FL branch May 26, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants