<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>David Cramer's Blog - Latest Comments in Caching Layer for Django ORM</title><link>http://davidcramer.disqus.com/</link><description></description><atom:link href="https://davidcramer.disqus.com/caching_layer_for_django_orm/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 04 Mar 2009 12:43:31 -0000</lastBuildDate><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-38940706</link><description>&lt;p&gt;Bump for emmby's question.  I'd like to use this but don't want to get it to production only to be bitten by some subtle immaturities.  Is it pretty well baked?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Wed, 04 Mar 2009 12:43:31 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-38940705</link><description>&lt;p&gt;I'd also love to hear about the status of this project.  It's the first hit on google when you do a "django orm cache" search, but it looks like it's been inactive for a little bit of time.  Are people using this?  Does it seem reliable?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">emmby</dc:creator><pubDate>Sat, 31 Jan 2009 19:23:20 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-38940703</link><description>&lt;p&gt;Hey David, thanks for this great caching layer. I was just wondering, were you planning on formally making a release soon? It seems like the last code changes were made back in February (from &lt;a href="http://code.google.com/p/django-orm-cache)" rel="nofollow noopener" target="_blank" title="http://code.google.com/p/django-orm-cache)"&gt;http://code.google.com/p/dj...&lt;/a&gt; and I'd love to start using this in some of my projects, but it's difficult to track without versioned releases.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roman Nurik</dc:creator><pubDate>Sun, 14 Dec 2008 18:01:16 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-3320396</link><description>&lt;p&gt;I had some difficulty getting this to work out of the box with the OneToOneRelation (I know it's not exactly in wide use, but until I have model-inheritance, it's the best fit for several aspects of my data model), and with Generic Relations.&lt;/p&gt;&lt;p&gt;After a couple tweaks to the code to get it to run (which could very well have broken it), I was finding on average the number of queries required to generate my pages went down by 1-3, and the effect was negligible.  For this test, I simply changed all of my models to inherit from CachedModel instead of models.Model.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Thu, 28 Feb 2008 16:18:30 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-3320398</link><description>&lt;p&gt;We did tests showing a 2x-5x increase in time for a standard cache call of 10-50 objects. It will be a little bit higher of course with the overhead of iterating through loops, but all in all it's going to provide a means of invalidation and still be far more efficient than SQL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Cramer</dc:creator><pubDate>Wed, 23 Jan 2008 19:49:24 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-3320394</link><description>&lt;p&gt;David,&lt;/p&gt;&lt;p&gt;While I expect you haven't done any in depth performance testing - have you given it any sort of a work out to give some sort of an indication of the possible benefits this is going to yield for you?&lt;/p&gt;&lt;p&gt;Al.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alistair Lattimore</dc:creator><pubDate>Tue, 22 Jan 2008 06:46:11 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-3320395</link><description>&lt;p&gt;One quick note is that I haven't actually put much thought into optimizing counts. And it currently doesn't invalidate them.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Cramer</dc:creator><pubDate>Tue, 22 Jan 2008 01:24:43 -0000</pubDate></item><item><title>Re: Caching Layer for Django ORM</title><link>http://cramer.io//73/caching-layer-for-django-orm.html#comment-3320397</link><description>&lt;p&gt;I like this a lot! When I started developing my django app most pages made like 50 seperate foreign key requests each for a single ID to the database. I even had queries for the same ID.&lt;/p&gt;&lt;p&gt;Because I really have to focus on DB speed I can't use Django's select_related function. That's why I'm now caching foreign key lookups with memcache get_many calls (Just hacked this code direclty editing Django sources for now).&lt;/p&gt;&lt;p&gt;I had most problems with foreign key lookups and obviously count() queries - and it's amazing to have Django's ORM to manage all that caching transparently behind the scenes. Great job!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan Oberst</dc:creator><pubDate>Tue, 22 Jan 2008 00:47:42 -0000</pubDate></item></channel></rss>