Repository navigation
Lorebase 0.2.3
A governed bulk delete: delete_records removes many Records of one Kind in one Operation execution, one Revision and one rate-limit token. No migration, no breaking change.
Added
- Built-in bulk delete
delete_records(kind,keys, optionalskip_missing): deletes many Records of one Kind in one Operation execution, one Revision and onewritesrate-limit token, instead of onedelete_{kind}call (and Revision) per Record. It is governed like the other built-ins: protected branches and review,dry_run,expected_head,Idempotency-Key, and Kind-scoped grants as fordelete_{kind}; it needs the Kind'sdeletebuilt-in enabled. Links of the deleted Records follow each Relation'son_delete(cascade or restrict) as a single delete does. Unknown keys fail the call (record.not_foundper key) unlessskip_missingleaves them out with warnings. At mostkeeper.operations.max_bulk_delete_keyskeys per call (default 1000). Python clientoperations.delete_records, CLIlorebase record delete KIND [KEY]... [--keys-file FILE] [--skip-missing], and Herald lists it among the generic Operations (design 5.7, operations).