Re: Django's query result caching

2014-12-01 Thread termopro
Could you please explain ? Because I don't think it is possible to do it that way. For example i have the following in my models.py: class City(models.Model): name = models.CharField(max_length=40,db_index=True) state_name = models.CharField(max_length=30) location = models.PointField(

Re: Django's query result caching

2014-12-01 Thread George Silva
You can convert your spatial results to WKT and store them in redis. On Mon, Dec 1, 2014 at 2:45 PM, termopro wrote: > I am creating a website using Django 1.7 and GeoDjango. I've hit the point > when i need to optimize website speed. > > One of the bottlenecks is query execution. There are some

Django's query result caching

2014-12-01 Thread termopro
I am creating a website using Django 1.7 and GeoDjango. I've hit the point when i need to optimize website speed. One of the bottlenecks is query execution. There are some queries which run slowly even when optimized. So i'd like to cache query results and store them in Redis. The problem t