Is there a performance difference between:
entityManager.createQuery("UPDATE MyTable SET coll1 = :someValue").setParameter("someValue").executeUpdate();
and
entityManager.createNativeQuery("UPDATE MyTable SET coll1 = :someValue").setParameter("someValue").executeUpdate();
and if yes, is it high enough to use 1 approach over the another?
I am making a performance comparison between hibernate and entity framework core. In EF core this kind of thing can only be done using native SQL (well, there are third party libs) so i want to know if i should switch out all createQuery().executeUpdate() for createNativeQuery().executeUpdate() on my hibernate project.