¿Ayuda filtrar documentos por otra propiedad antes de realizar una consulta geoespacial a través de la API de búsqueda?

In the Search API for App Engine, there is an option to query documents containing Geopoints by the distance from a given Geopoint. Would it improve performance or reduce costs if I filter the documents by another property like "city" before using a query that filters by distance of the entities represented by the documents from user's location?

preguntado el 12 de junio de 14 a las 10:06

1 Respuestas

If adding a city filter significantly reduces the number of results (i.e. a large part of a search circle is beyond the city limits) then this filter will improve performance. On the other hand, if your search happens to be inside a city, adding this filter will degrade performance.

Respondido el 12 de junio de 14 a las 16:06

This is very interesting, can you link some documentation on how query order works with regard to optimisation? - Nick

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.