Apple interview question

How do you optimize the database?