How to use native queries to perform bulk updates
If you just want to update 1 or 2 entities, you can simply fetch them from the database and perform the update operation on it. But what about updating hundreds of entities? You can, of course, use the standard approach and load and update each of these entities. But that is often too slow because…