fix: add missing database indexes #21
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-agentic#21
Loading…
Add table
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?
Issue
Frequently queried columns lack indexes, impacting performance.
Missing Indexes
agent_sessions.session_id- frequently looked up by string (currently unique, but not explicitly indexed)agent_plans.slug- used in URL routing (has index, but check if compound index needed)workspace_states.key- key lookup is common operationCurrent State
Per TODO.md DB-002, these are identified as performance bottlenecks.
Acceptance Criteria
agent_sessions.session_id(verify if unique constraint is sufficient)agent_plans.slugindex usageworkspace_states.keyReferences
Migrations/0001_01_01_000003_create_agent_plans_tables.php