We can drop slow query to avoid crashing the server.
const users = await dataSource
.getRepository(User)
.createQueryBuilder("user")
.maxExecutionTime(1000) // milliseconds.
.getMany()
Logic Paradise © 2024. All rights reserved. Block B, STPI Srinagar, Jammu and Kashmir 190005
WhatsApp us