-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk insert support? #23
Comments
Hi. It's not recommended for bulk insert - it's aimed at detecting and updating, or inserting in this case, the changes in a reasonable number (say 100's) of business objects. It works one object at a time, and there's definitely no code in Mighty (or Massive) that tries to optimise for bulk insert. I'd need to do some research myself as to what the most efficient way is to achieve this using |
I'm noting/reminding myself that this is something done in quite DB specific ways:
Mighty (following Massive) is a wrapper over So basically, adding a bulk insert wrapper - whilst certainly possible, and not unreasonable! - is 100% a new feature which Mighty doesn't have! :-/ |
Thanks for the update @mikebeaton My investigation also concluded in using the Maybe this issue can be marked as an enhancement? |
Happy to do that - in fact, done! A couple of points:
|
Hi,
What is the fastest (and recommended) way of doing bulk insert using MightyOrm?
I've tried the
public override IEnumerable<T> Insert(IEnumerable<object> items)
method. However, it doesn't seem very fast. As of writing this, I'm inserting 100K rows in total, and it has taken several minutes reaching 20K.Update: It took over an hour inserting 100 000K rows (15 columns).
Any inputs on this?
Thanks,
Thomas
The text was updated successfully, but these errors were encountered: