-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
v3.0Changes awaiting the next breaking releaseChanges awaiting the next breaking release
Milestone
Description
In most RDBMS that could be replaced by stored procedures, but SQLite doesn't have them. If I need to insert many rows, but cannot do so in a single transaction, I cannot reuse prepared statements. Please see this issue for additional details. In this test using Dapper is now c.25% slower than the manual call.
One idea is to cache queries by sql string, make them prepared, and just populate parameters on every subsequent call. That could be done with some additional overload with an optional parameter prepared = false. Are you interested in supporting this?
Dapper is awesome for automatic mapping, it will be even more awesome and faster with support of prepared statements!
Winterbeetle, Dattaya, Jure-BB and cedx
Metadata
Metadata
Assignees
Labels
v3.0Changes awaiting the next breaking releaseChanges awaiting the next breaking release