I'm having a problem inserting many rows with SQLDelight. I'm not sure if the query is deadlocked, or just taking many minutes. I'm inserting about 10k rows in two different tables.
Both have a .sq
file like:
save:
INSERT OR REPLACE INTO TableA VALUES ?;
my insert:
val tableAQueries = database.tableAQueries
withContext(Dispatchers.IO) {
tableAQueries.transaction {
rows.forEach { tableAQueries.save(it) }
}
}