Bulk Insert
Bulk inserts in fact are handled by the same Store
method used for storing any other object.
You simply store an array - and the database will take care of everything, e.g.
database will find all dependencies and store them (see Store Method (obj)).
Example 1:
MyObjects[] array = new MyObjects[]{..}
db.Store(array);
In the example above, all
the objects from the array will be stored, but not the array itself - nothing
holds a reference to it, from the database point of view. If you need to store
the array as well, here is another example:
Example 2:
class MyObject : ParentObject
{
AnotherObject[] value;
...
}
MyObject c = new MyObject();
db.Store(c)
The in-memory database
functionality can be handy to quickly add a lot of data at the initial stage,
and then save the database back to the file. That can improve the performance
many folds. For more details follow the link for in-memory database information.