I know that it is not recommended to use Entity Framework for bulk inserting since it adds them one by one. (Example 1, example 2.)
How about attaching one object that has a large graph underneath it, e.g. 100Ks of objects? - Specifically:
- What are the (time/memory) performance considerations for using EF5 to do this?
- Are there any best practices for storing large graphs?
- Are relational databases even a good idea for storing large graphs?
A bit of background:
The graph is created using EF5 POCOs, then attached at the root and saved. The graph is always new data, never updates. The DB we use is SQL Server 2012.
The actual creation process can take tens of seconds for large cases (100Ks of objects), so if the attach/save process takes 10% of that time, it won't have a significant affect on the overall time performance.