1950Labs interview question

How to optimize a database