Lavorando con Doctrine 2 mi sono imbattuto nel seguente paragrafo.
In fact, since Doctrine is aware of all your managed entities, when you call theflush() method, it calculates an overall changeset and executes the most efficient query/queries possible. For example, if you persist a total of 100 Product objects and then subsequently call flush(), Doctrine will create a single prepared statement and re-use it for each insert. This pattern is called Unit of Work, and it's used because it's fast and efficient
Non sono al passo con i database relazionali e la ORM teoria quindi mi chiedevo perché è Modello Unità di lavoro considerato veloce ed efficiente?