You can insert one object at a time in the model context by doing this:
modelContext.insert(object)
If I want to insert an array of objects, I would do this:
for obj in objects {
modelContext.insert(obj)
}
This works but seems ineficient. Is there a way to directly insert or append a full array of objects into the model context?