#13156: exists() selects all columns
------------------------------------------+---------------------------------
 Reporter:  kmtracey                      |       Owner:  nobody    
   Status:  new                           |   Milestone:  1.2       
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 It doesn't seem like the behavior noted here:
 http://groups.google.com/group/django-
 developers/browse_thread/thread/186f933bf51f1fa0

 ever got written up in a ticket. Besides exists() not being as efficient
 as documented, it used to be that the internal existence queries done by
 the ORM to check for existence of an object and decide whether to do an
 INSERT or UPDATE just pulled a constant 1 from the DB, not all columns of
 the instance being queried. Now these existence queries are pulling the 1
 and all columns of the instance, which seems like it could be a
 performance regression.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13156>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to