to make objects persistent during a request, use
res.commit();
our problem was, that we had an import process that sometimes was adorted due to timeout.
res.commit() saves the objects that have been created until it’s call. so we only “lose” the objects that would be created after the timeout.