chore(): Downgrade mikro orm (performance regression) (#13680)
**What** After lot of investigation, we finally found one of our performance regerssion point (see [here](https://github.com/mikro-orm/mikro-orm/issues/6905)), this pr downgrade mikro orm and move the strategy back to select in where needed
This commit is contained in:
@@ -465,7 +465,7 @@ export function mikroOrmBaseRepositoryFactory<const T extends object>(
|
||||
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
||||
// TODO: from 7+ it will be the default strategy
|
||||
Object.assign(findOptions_.options, {
|
||||
strategy: LoadStrategy.BALANCED,
|
||||
strategy: LoadStrategy.SELECT_IN,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -494,7 +494,7 @@ export function mikroOrmBaseRepositoryFactory<const T extends object>(
|
||||
if (findOptions_.options.limit != null || findOptions_.options.offset) {
|
||||
// TODO: from 7+ it will be the default strategy
|
||||
Object.assign(findOptions_.options, {
|
||||
strategy: LoadStrategy.BALANCED,
|
||||
strategy: LoadStrategy.SELECT_IN,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user