On Feb 18, 2009, at 02:13, Malcolm Tredinnick wrote:
>
> On Tue, 2009-02-17 at 18:57 -0600, Jeremy Dunck wrote:
>> On Tue, Feb 17, 2009 at 6:49 PM, Malcolm Tredinnick
>> wrote:
>> ...
>>> I'd be somewhat against this, I think. It's *very* easy to reuse
>>> querysets
On Tue, Feb 17, 2009 at 7:49 PM, Malcolm Tredinnick
wrote:
> I'd be somewhat against this, I think. It's *very* easy to reuse
> querysets and inadvertently cause extra database queries. Unless you're
> using really huge querysets, the memory usage is not going to kill
On Tue, 2009-02-17 at 19:25 -0600, Jeremy Dunck wrote:
> On Tue, Feb 17, 2009 at 7:13 PM, Malcolm Tredinnick
> wrote:
> ...
> >> if settings.DEBUG and self.prior_iteration:
> >>warnings.warn("dope!")
> >
> > This certainly sounds reasonable and doable today without
On Tue, Feb 17, 2009 at 7:13 PM, Malcolm Tredinnick
wrote:
...
>> if settings.DEBUG and self.prior_iteration:
>>warnings.warn("dope!")
>
> This certainly sounds reasonable and doable today without any real
> overhead. Go ahead and make a patch/ticket.
OK.
Do you
On Tue, 2009-02-17 at 18:57 -0600, Jeremy Dunck wrote:
> On Tue, Feb 17, 2009 at 6:49 PM, Malcolm Tredinnick
> wrote:
> ...
> > I'd be somewhat against this, I think. It's *very* easy to reuse
> > querysets and inadvertently cause extra database queries.
> ...
> > we're
On Tue, Feb 17, 2009 at 6:49 PM, Malcolm Tredinnick
wrote:
...
> I'd be somewhat against this, I think. It's *very* easy to reuse
> querysets and inadvertently cause extra database queries.
...
> we're trading memory
> usage for speed and ease of use (and providing a
On Tue, 2009-02-17 at 15:20 -0600, Jeremy Dunck wrote:
> On Tue, Feb 17, 2009 at 3:15 PM, Jeremy Dunck wrote:
> ...
> > {% for question in poll.questions.all.iterator %}
> > works just fine.
> >
>
> OK, last one from me.
>
> As a 2.0 wish, I'd like to make .iterator the
On Tue, Feb 17, 2009 at 3:00 PM, Jeremy Dunck wrote:
>
> On Tue, Feb 17, 2009 at 3:52 PM, James Bennett wrote:
>>
>> On Tue, Feb 17, 2009 at 7:40 AM, NitinHayaran wrote:
>>> Today i read this article and was wondering whether
On Tue, Feb 17, 2009 at 3:52 PM, James Bennett wrote:
>
> On Tue, Feb 17, 2009 at 7:40 AM, NitinHayaran wrote:
>> Today i read this article and was wondering whether django orm is
>> really that bad.
>>
>>
On Tue, Feb 17, 2009 at 3:15 PM, Jeremy Dunck wrote:
...
> {% for question in poll.questions.all.iterator %}
> works just fine.
>
OK, last one from me.
As a 2.0 wish, I'd like to make .iterator the default behavior, and
the cached-version a special case. I realize this point
On Tue, Feb 17, 2009 at 2:11 PM, Alex Gaynor wrote:
...
>
> Neither is completely correct ;). Both do chunked reads from the
> DB(__iter__ using iterator for getting the data), however __iter__ also
> caches them, so if you reiterate you don't do a second db query,
On Tue, Feb 17, 2009 at 3:12 PM, Jeremy Dunck wrote:
> Even so, it seems like it'd be useful to have a built-in filter which
> uses iter(object)?
>
> {% for question in poll.questions.all()|iterate %}
Ugh.
Sorry, I'm an idiot.
{% for question in poll.questions.all.iterator
On Tue, Feb 17, 2009 at 1:50 PM, Ian Kelly wrote:
>
> On Tue, Feb 17, 2009 at 7:40 AM, M N Islam Shihan
> wrote:
> >
> > Hi,
> >
> > Please go through the comments of the blog post you are referring and
> you'll
> > understand why, how and where to use
On Tue, Feb 17, 2009 at 7:40 AM, M N Islam Shihan wrote:
>
> Hi,
>
> Please go through the comments of the blog post you are referring and you'll
> understand why, how and where to use the django ORM.
>
> Regards,
> Shihan
Something I've just noticed here. One of the
Hi,
Please go through the comments of the blog post you are referring and you'll
understand why, how and where to use the django ORM.
Regards,
Shihan
- Original Message -
From: "NitinHayaran"
To: "Django developers"
Sent:
Hi,
I did a reply on the post. Might be some time before it's approved.
The gist is that yes it's that bad if you're using it naively. As long
as you know what's gonna be loaded from the DB you can avoid those
cases pretty easily.
You can also check
On Tue, Feb 17, 2009 at 6:40 AM, NitinHayaran wrote:
>
> Hi All,
> Today i read this article and was wondering whether django orm is
> really that bad.
>
> http://dayhacker.blogspot.com/2009/02/why-django-orm-sucks-it-takes-hell-lot.html
>
> I think this is the right
Hi All,
Today i read this article and was wondering whether django orm is
really that bad.
http://dayhacker.blogspot.com/2009/02/why-django-orm-sucks-it-takes-hell-lot.html
I think this is the right place to ask?
--~--~-~--~~~---~--~~
You received this message
18 matches
Mail list logo