Get a Quote Right Now

Edit Template

Max execution time

We can drop slow query to avoid crashing the server.

const users = await dataSource
    .getRepository(User)
    .createQueryBuilder("user")
    .maxExecutionTime(1000) // milliseconds.
    .getMany()

Share

Leave a Reply

Your email address will not be published. Required fields are marked *