# HG changeset patch # User Ted Unangst # Date 1716840104 14400 # Mon May 27 16:01:44 2024 -0400 # Node ID b32ca4586232d68adc7e3a45063ce5de5fbb8ba6 # Parent 19b4121820e72c2b82b0601837e38055fcad9ba2 some threads may be getting large.. diff --git a/database.go b/database.go --- a/database.go +++ b/database.go @@ -301,7 +301,7 @@ return getsomehonks(rows, err) } func gethonksbyconvoy(userid UserID, convoy string, wanted int64) []*Honk { - rows, err := stmtHonksByConvoy.Query(convoy, wanted, userid) + rows, err := stmtHonksByConvoy.Query(convoy, wanted, userid, 1000) return getsomehonks(rows, err) } func gethonksbysearch(userid UserID, q string, wanted int64) []*Honk { @@ -1154,7 +1154,7 @@ select xid, convoy from honks, getthread where honks.rid <> '' and honks.rid = getthread.x union select rid, convoy from honks, getthread where honks.xid = getthread.x and rid <> '' - ) `+selecthonks+"where honks.honkid > ? and honks.userid = ? and xid in (select x from getthread)"+limit) + ) `+selecthonks+"where honks.honkid > ? and honks.userid = ? and xid in (select x from getthread)"+smalllimit) stmtHonksByOntology = preparetodie(db, selecthonks+"join onts on honks.honkid = onts.honkid where honks.honkid > ? and onts.ontology = ? and (honks.userid = ? or (? = -1 and honks.whofore = 2))"+limit) stmtSaveMeta = preparetodie(db, "insert into honkmeta (honkid, genus, json) values (?, ?, ?)")