Domanda di colloquio di Revolut

How do you know that your database queries are taking time? How will you solve it?