all repos — honk @ 87d4da63d22d730c0d010a3f15173a43de0dfce5

my fork of honk

add another whofore index
Ted Unangst tedu@tedunangst.com
Thu, 14 Sep 2023 16:44:24 -0400
commit

87d4da63d22d730c0d010a3f15173a43de0dfce5

parent

bda8b07461c62564112152649b4fd6474fcbf516

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M schema.sqlschema.sql

@@ -15,6 +15,7 @@ create index idx_honksxid on honks(xid);

create index idx_honksconvoy on honks(convoy); create index idx_honkshonker on honks(honker); create index idx_honksoonker on honks(oonker); +create index idx_honksforme on honks(whofore) where whofore = 1; create index idx_honkswhotwo on honks(whofore) where whofore = 2; create index idx_donkshonk on donks(honkid); create index idx_donkschonk on donks(chonkid);
M upgradedb.goupgradedb.go

@@ -23,7 +23,7 @@

"humungus.tedunangst.com/r/webs/htfilter" ) -var myVersion = 46 // idx whotwo +var myVersion = 47 // idx forme type dbexecer interface { Exec(query string, args ...interface{}) (sql.Result, error)

@@ -176,6 +176,10 @@ try("create index idx_honkswhotwo on honks(whofore) where whofore = 2")

setV(46) fallthrough case 46: + try("create index idx_honksforme on honks(whofore) where whofore = 1") + setV(47) + fallthrough + case 47: try("analyze") default: