This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/db: add indices to load issues-by-repo quicker

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
committer
Tangled
date (Jul 23, 2026, 1:07 PM +0300) commit 6e92c96c parent f3543173 change-id vqyurnws
+11
+11
appview/db/db.go
··· 2476 2476 return err 2477 2477 }) 2478 2478 2479 + // gets rid of a few b-tree order bys in getissue queries and replaces them with search 2480 + orm.RunMigration(conn, logger, "add-issue-list-indexes", func(tx *sql.Tx) error { 2481 + _, err := tx.Exec(` 2482 + drop index if exists idx_issues_repo_did; 2483 + create index if not exists idx_issues_repo_created on issues(repo_did, created desc); 2484 + create index if not exists idx_comments_subject_uri on comments(subject_uri); 2485 + create index if not exists idx_label_ops_subject on label_ops(subject); 2486 + `) 2487 + return err 2488 + }) 2489 + 2479 2490 return &DB{ 2480 2491 db, 2481 2492 logger,