Disable crash-safety pragmas (synchronous=OFF, journal_mode=MEMORY), use a 200MB page cache, disable foreign keys to avoid per-row CASCADE overhead, bulk-delete junction tables explicitly, and wrap all deletes in a single transaction.