Insert all new managed objects before updating any of them