Search code examples
pythongoogle-app-enginegoogle-cloud-datastoregeospatialgeohashing

Why Bounding Box Search executes too long?


I'm using GeoModel to do Bounding Box Search. There are about 350 events in datastore but it executes >5 sec. The same results on my development environment and on google app engine. Why so long ? Do I need to add some Indexes ?

results = Event.bounding_box_fetch(
    Event.all(),
    geotypes.Box(north_east_lat, north_east_lng, south_west_lat, south_west_lng),
    max_results=100)

On this example it works much better.
I'm using Python 2.7 and google app engine

appstat appstat timeline


Solution

  • The GeoModel is sort of "old stuff" now. It became to expensive since the new GAE Billing has taken place. There's no "official" alternative (from Google) from what I've seen.

    Here's a detailed discussion on App Engine group. You might wanna check it out: https://groups.google.com/d/msg/google-appengine/-FqljlTruK4/aXrzUPAlNbAJ