Skip to content

Comments

v0.0.11: session linking, query optimization#10

Merged
butttons merged 3 commits intomainfrom
feat/v0.0.11
Feb 23, 2026
Merged

v0.0.11: session linking, query optimization#10
butttons merged 3 commits intomainfrom
feat/v0.0.11

Conversation

@butttons
Copy link
Owner

@butttons butttons commented Feb 23, 2026

Summary

Add manual session-commit linking/unlinking in the UI and API, and optimize D1 queries with new indexes and query rewrites.

Changes

Worker

  • Session linking: UI forms and API endpoints to link/unlink sessions from commits, with dropdown picker and manual ID input
  • Query optimization: Add 4 new D1 indexes for committed_at ordering, branch-only, and author lookups
  • Query rewrites: Replace org || '/' || repo string concatenation with separate column comparisons, eliminating full table scans
  • Global stats: Simplify to use covering indexes and avoid expression-based DISTINCT

- API: DELETE/POST /api/sessions/:id/commits/:sha for unlink/link
- UI: unlink button on session headers, link form with session picker
- Copyable full session ID on commit detail page
- Add 4 indexes: repo+committed_at, committed_at, branch-only, author
- Replace string concat filters (org||repo) with separate column comparisons
- Simplify getGlobalStats to use covering indexes and avoid expression-based DISTINCT
@butttons butttons changed the title v0.0.11: manual session-commit link/unlink v0.0.11: session linking, query optimization Feb 23, 2026
@butttons butttons merged commit 74657ce into main Feb 23, 2026
2 checks passed
@butttons butttons deleted the feat/v0.0.11 branch February 23, 2026 08:46
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.

1 participant