beads/internal/storage/issueops/batching.go
Julian Knutsen 09a3890877
fix(storage): preserve mixed issue and wisp reads (#3991)
* fix(schema): avoid sweeping dirty data during migrations

* fix: guard schema migration dirty commits (bd-wisp-g6c0g)

* fix(storage): preserve mixed issue and wisp reads

* fix(schema): unstage old tables before migrations

* test(dolt): add generated column cascade repro

* Repair PR 3991 rebase against current storage schema
2026-05-21 06:50:42 -07:00

14 lines
516 B
Go

package issueops
import "github.com/steveyegge/beads/internal/storage/dberrors"
// queryBatchSize limits the number of IDs in a single IN (...) clause.
// Large IN clauses cause Dolt query-planner spikes and MySQL packet-size
// issues. 200 matches the value used in the dolt package historically.
const queryBatchSize = 200
// isTableNotExistError returns true if the error indicates a missing table
// (MySQL/Dolt error 1146).
func isTableNotExistError(err error) bool {
return dberrors.IsTableNotExist(err)
}