MikroORM https://mikro-orm.io is great, especially with its hardcore TypeScript support.

However, I used it naively, and one of my end endpoints hit Out Of Memory (OOM) when a query brought in 554 MB of data.

Fortunately, it was trivial to add `offset` and `limit` query params, and work through the results 1000 rows at a time, dropping vm.measureMemory()'s `jsMemoryEstimate` down to 52 MB.

Reply to this note

Please Login to reply.

Discussion

No replies yet.