async fn delete_entries_for_dict(
pool: &SqlitePool,
dict_id: i64,
shutdown: &ShutdownSignal,
) -> Result<u64, Error>Expand description
Deletes all index entries for a single dictionary in batches.
Each batch issues a single DELETE … LIMIT statement, keeping write locks
short while avoiding per-row overhead.
Returns the total number of rows deleted, or an error if any batch fails. Respects the shutdown signal between batches: if a shutdown is requested mid-way, the function returns early with the count deleted so far.