Pergunta de entrevista da empresa Depop

How would you solve the problem of hitting the database multiple times

Resposta da entrevista

Sigiloso

25 de fev. de 2021

I answered using a cache but the answer they were looking for was to optimize the query, which was fair enough