Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Where am I? Django & Location Services

Where am I? Django & Location Services

Slides from my talk at JSPyConf in Istanbul. I talked about Django and different location database and search solutions you can use with it, as well as some visualization and mapping options.

Style and colour theme was totally ripped off from Chris Coyier's (http://chriscoyier.net) excellent slide deck designs with his gracious approval.

Taylan Pince

March 30, 2013
Tweet

More Decks by Taylan Pince

Other Decks in Programming

Transcript

  1. geodjango Model Integration from django.db import models from django.contrib.gis.db import

    models class Restaurant(models.Model): location = models.PointField() objects = models.GeoManager()
  2. geodjango 1 2 3 Good for complex data Not performance

    oriented 95% simple data is OK 4 Simple queries are enough
  3. mongoDB 1 2 3 Hard to install & deploy Only

    simple queries Good performance
  4. mongoDB app server app server mongoDB config mongoDB config mongoDB

    config mongoDB shard mongoDB replica mongoDB shard mongoDB replica mongoDB shard mongoDB replica Simple Production Deployment
  5. mongoDB 1 2 3 Limited to simple data Only simple

    search queries High performance 4 Easy to scale
  6. elasticsearch Haystack Integration from haystack import indexes class RestaurantIndex( indexes.SearchIndex,

    indexes.Indexable): location = indexes.LocationField( model_attr="location" )
  7. elasticsearch app server app server elastic search elastic search elastic

    search Simple Production Deployment Can detect other instances automatically!
  8. Q&A