I am using nestjs and mariadb with typeorm.
I have a postcode table that has 3 million entries. the table has fields like id, country, zipCode, city. I put indexes on country, zipCode, city. I can GET uses pagination. Even so, each GET with a limit of 10 takes 3 seconds to complete. It's definitely too much because this endpoint is to be used for input, that you write the name of the city and it tells you the city, it has to be fast. Can it be faster ?