Array support for insert and update
See original GitHub issueI’m using linq2db in one client/server project where the MS SQL Server DB is on cloud and winform app is desktop pc. Several scenario involves updating or inserting 1000-10000 rows in tables. As turnaround times between server/application makes the processing time long (works really fast with local db). I might have missed something really basic, but I can’t find a good way to batch together many insert or update operations onto a batch and send them to DB at once. That way, I get rid of turn around times. Example what I see would work for me:
List<Order> orderList = GetOrderListToInsert();
db.Insert(orderList);
orderList = GetOrderListToUpdate();
db.Update(orderList);
I have done some work in creating text SQL statements and sending them over to DB and that works with good performance. Drawback is to create all the code for update/insert…
Please note that I’m a relative new user to linq2db and still learning how to do things. I might not use the linq2db in the correct way.
Thanks for sharing such a cool project as linq2db!
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
For updates there are multiple options available: