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:
Adrien de Peretti
2025-10-03 15:31:40 +00:00
committed by GitHub
parent 8a996a82a7
commit 4165172145
6 changed files with 66 additions and 58 deletions
@@ -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,
})
}
}