Pregunta de entrevista de Apple

How to speed up a database query?

Respuestas de entrevistas

Anónimo

2 feb 2015

Don’t select what you don’t need s very common that you need to get only a specific number of records from your database. For example, a blog which is showing ten entries per page. In that case, you should definitely use the LIMIT paramete Avoid queries in loops

Anónimo

29 sep 2015

index the field you are using in the where clause or use an indexed field in the where clause