<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Django trap with LIMIT queries</title>
	<atom:link href="http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/feed" rel="self" type="application/rss+xml" />
	<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries</link>
	<description>all the other blogs have such cool names, I don't know one ...</description>
	<pubDate>Sun, 20 May 2012 21:39:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rich jones</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-453554</link>
		<dc:creator>Rich jones</dc:creator>
		<pubDate>Wed, 15 Feb 2012 20:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-453554</guid>
		<description>Handy little post!</description>
		<content:encoded><![CDATA[<p>Handy little post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-418268</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 19 Jan 2011 14:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-418268</guid>
		<description>Great tip!  It sounds like you've been using python for a while.  I'll have to give this idea a try!</description>
		<content:encoded><![CDATA[<p>Great tip!  It sounds like you&#8217;ve been using python for a while.  I&#8217;ll have to give this idea a try!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicky  Swift</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-415358</link>
		<dc:creator>Nicky  Swift</dc:creator>
		<pubDate>Wed, 24 Nov 2010 23:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-415358</guid>
		<description>Damn, certainly nice info. Where can I find that subscription?

Nicky  Swift
&lt;a href="http://www.wirelesscameradetectors.com/" rel="nofollow"&gt;bug detection device &lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Damn, certainly nice info. Where can I find that subscription?</p>
<p>Nicky  Swift<br />
<a href="http://www.wirelesscameradetectors.com/" rel="nofollow">bug detection device </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal Leeming (sleepycal)</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-406651</link>
		<dc:creator>Cal Leeming (sleepycal)</dc:creator>
		<pubDate>Fri, 11 Dec 2009 00:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-406651</guid>
		<description>Hey dude,

Thank you ever so much for giving these examples, it has really speeded up my query sets! I don't know why they don't list these sorts of things on the django documentation.. Ah well, good work dude! :)

&lt;3

Cal</description>
		<content:encoded><![CDATA[<p>Hey dude,</p>
<p>Thank you ever so much for giving these examples, it has really speeded up my query sets! I don&#8217;t know why they don&#8217;t list these sorts of things on the django documentation.. Ah well, good work dude! <img src='http://wolfram.kriesing.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&lt;3</p>
<p>Cal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bertrand Mathieu</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-369920</link>
		<dc:creator>Bertrand Mathieu</dc:creator>
		<pubDate>Tue, 24 Mar 2009 09:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-369920</guid>
		<description>I got this kind of problem with django 1.0 in admin site: when filling forms in formsets objects the code uses slices. Then the query with "LIMIT" return the same object at index 0 and 1! :-/ 
The "all()" does not uses LIMIT. My DB is postgres, maybe it is specific.

My workaround was to specify explicitely "ordering" on primary key ("id") in the model definition.</description>
		<content:encoded><![CDATA[<p>I got this kind of problem with django 1.0 in admin site: when filling forms in formsets objects the code uses slices. Then the query with &#8220;LIMIT&#8221; return the same object at index 0 and 1! :-/<br />
The &#8220;all()&#8221; does not uses LIMIT. My DB is postgres, maybe it is specific.</p>
<p>My workaround was to specify explicitely &#8220;ordering&#8221; on primary key (&#8221;id&#8221;) in the model definition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unode</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-326018</link>
		<dc:creator>Unode</dc:creator>
		<pubDate>Wed, 05 Nov 2008 20:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-326018</guid>
		<description>The current version of django no longer has this trap. Using slices with or without the explicit list call will always give the same result.

Cheers</description>
		<content:encoded><![CDATA[<p>The current version of django no longer has this trap. Using slices with or without the explicit list call will always give the same result.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dog training</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-90990</link>
		<dc:creator>Dog training</dc:creator>
		<pubDate>Thu, 22 Nov 2007 19:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-90990</guid>
		<description>Very interesting... as always! Cheers from Switzerland.</description>
		<content:encoded><![CDATA[<p>Very interesting&#8230; as always! Cheers from Switzerland.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martina</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries/comment-page-1#comment-18531</link>
		<dc:creator>Martina</dc:creator>
		<pubDate>Tue, 27 Feb 2007 22:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/django-trap-with-limit-queries#comment-18531</guid>
		<description>instead of:
Item.objects.all()[2:4:1]
I prefer to write:
items = list(Item.objects.all()[2:4])
this states the intent much more explicit IMO.</description>
		<content:encoded><![CDATA[<p>instead of:<br />
Item.objects.all()[2:4:1]<br />
I prefer to write:<br />
items = list(Item.objects.all()[2:4])<br />
this states the intent much more explicit IMO.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

