Valtech Interview Question

How to achieve Optimized performance between DB calls & app