Pergunta de entrevista da empresa Buildium

What would you do to avoid hitting the database and make the URL shortener provide a quick response to users?