#3845: Add db_index to FlatPages 'url' field
-------------------------------------+--------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  adrian      
  Status:  new                       |   Component:  Contrib apps
 Version:  SVN                       |    Keywords:              
   Stage:  Unreviewed                |   Has_patch:  0           
-------------------------------------+--------------------------------------
 Currently the FlatPage model doesn't have an index on 'url', but always
 uses 'url' for the lookup in contrib.flatpages.views:
 {{{
 f = get_object_or_404(FlatPage, url__exact=url,
 sites__id__exact=settings.SITE_ID)
 }}}
 
 I'm not sure how this could hurt in any case since if you only had a few
 flatpages your index would be small and if you had many it would be
 crucial.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3845>
Django Code <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