network connection lost errors, or are you getting internal error errors? Those are two very different things.50 Milliarden which would translate to 50 Billion . Although then English version says 50 Million like pretty much all other resources
Error: D1_ERROR: D1 DB's isolate exceeded its memory limit and was reset. and Error: D1_ERROR: Network connection lost. . I suspect the latter is a symptom of the former. Am I working my DB too hard? DB ID is 1af9dfd0-4a92-4ed3-a17d-f3b09713d888 if that's any use meta object that has this information about rows read and written and query duration itself.internal error errors due to D1 read replication is now fully rolled out in production.wrangler d1 export to create a .sql file and then wrangler d1 execute with that file, but that fails every time due to foreign key constraints.execute command. Any tips?PRAGMA defer_foreign_keys=TRUE; at the topPRAGMA foreign_keys = off; and turn off FKs completely for the duration of the file (then on again at the end)
let db: Kysely<DB>;
export async function getDB() {
if (db) return db;
const d1Binding = await getDatabaseProvider();
db = new Kysely<DB>({
dialect: new D1Dialect({ database: d1Binding }),
});
return db;
}