#10466: Docuemtn that functions in QuerySets' parameters are eagerly evaluated.
------------------------------------+---------------------------------------
          Reporter:  liangent       |         Owner:  nobody
            Status:  closed         |     Milestone:        
         Component:  Documentation  |       Version:  SVN   
        Resolution:  fixed          |      Keywords:        
             Stage:  Accepted       |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * needs_better_patch:  => 0
  * component:  Database layer (models, ORM) => Documentation
  * needs_tests:  => 0
  * summary:  functions as QuerySets' parameters are not lazy => Docuemtn
              that functions in QuerySets' parameters are
              eagerly evaluated.
  * needs_docs:  => 0
  * resolution:  => fixed
  * stage:  Unreviewed => Accepted

Comment:

 I'm going to call this one invalid, but it does need better documentation.

 The queryset's evaluation against the database is lazy. The parameter
 evaluation (unless it's a database query) is done when you create the
 queryset. It's fairly complicated to arrange for this to be otherwise in
 all cases and rather than mess around with when it does and doesn't work,
 we always have eager parameter evaluation.

 I will add some documentation, but the behaviour isn't going to change.
 Sorry about that. :-)

 Changing the title to reflect how we'll resolve this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10466#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to