I measure first, then rebuild the queries, APIs and screens that matter, without stopping the product. On a parking management SaaS I rebuilt the admin dashboard and API in 8 weeks (NestJS, Next.js, AWS EC2/RDS). Login went from 8-10 seconds to about 200ms, page load dropped 80%, and the client extended the contract.