K
K
keyotor2021-08-27 12:49:04
ORM
keyotor, 2021-08-27 12:49:04

What should I do if using typeorm I get data from the database slowly?

Please tell me what to do if I receive data from the database in 150-200ms, but if I wait 20 seconds and again get data from the backend, then I receive the data in a second or a second and a half, although in theory and in general it should usually be 150-200ms?
I use typeform

async getProducts() {
    const products = await this.productRepository.find();
    return products;
  }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question