Martin Adámek
Martin Adámek
Yes, more like v6 I guess, I already have too many things in the pipeline for 5.x and for v6 I'd like to revisit the EM API a bit, introducing...
I was recently fixing one issue with the promise.all and flushing resulting in flaky tests, and introduced async local storage context to the flush call to deal with it. We...
Yeah, that should cover most of it. I am still not sure about the restrictions around QB/native* methods, so let's keep that for some other time I guess. For flushing...
FYI v5.5 added `em.upsert`. Right now it only works with a single entity with simple unique props, next version will also support composite unique keys and hopefully also batch processing....
Closing as fixed in v6 via #4866
Need to add more tests and clean things up, but #4917 is alive and the tests are passing.
Sure, just pass array of items to `qb.insert`.
You can do bulk update as well, via `em.getDriver().nativeUpdateMany()`, that's what the UoW uses under the hood.
FYI the comparator has nowadays a `matching` method. https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/utils/EntityComparator.ts#L43 The downside of using this is that it is built for comparing the database values, so the entity snapshots - the...