index honks.rid
Ted Unangst tedu@tedunangst.com
Mon, 11 Mar 2024 21:38:49 -0400
2 files changed,
6 insertions(+),
1 deletions(-)
M
schema.sql
→
schema.sql
@@ -13,6 +13,7 @@ create table tracks (xid text, fetches text);
create index idx_honksxid on honks(xid); create index idx_honksurl on honks(url); +create index idx_honksrid on honks(rid) where rid <> ''; create index idx_honksconvoy on honks(convoy); create index idx_honkshonker on honks(honker); create index idx_honksoonker on honks(oonker);
M
upgradedb.go
→
upgradedb.go
@@ -23,7 +23,7 @@
"humungus.tedunangst.com/r/webs/htfilter" ) -var myVersion = 49 // index honks url +var myVersion = 50 // index honks rid type dbexecer interface { Exec(query string, args ...interface{}) (sql.Result, error)@@ -214,6 +214,10 @@ try("create index idx_honksurl on honks(url)")
setV(49) fallthrough case 49: + try("create index idx_honksrid on honks(rid) where rid <> ''") + setV(50) + fallthrough + case 50: try("analyze") closedatabases()