Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
BSD 3-Clause "New" or "Revised" License
217
stars
52
forks
source link
SqfliteAdapter batching is unused #85
Closed
thomasostfeld closed 5 years ago
Both
updateMany
andupsertMany
create and commit a batch inSqfliteAdapter
.The batch isn't used to execute any of the queries though, they are instead directly handled by the connection.
Instead of
connection.execute(query);
the query should be executed by the batch:batch.execute(query);
In my test this gave me a big performance boost of about 10x.