#19304: the mistake of the QuerySet Caching
-------------------------------------+-------------------------------------
     Reporter:  rex@…                |      Owner:  nobody
         Type:  Uncategorized        |     Status:  new
    Component:  Database layer       |    Version:  1.4
  (models, ORM)                      |   Keywords:  QuerySet Caching,
     Severity:  Normal               |  Models get
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 hi Django Team,

 may be I get some problem by following to django docs, in programe the
 Models logic,
 the docs notice that get method get()
 https://docs.djangoproject.com/en/dev/ref/models/querysets/#get  '''do not
 use a cache (see Caching and QuerySets). Rather, they query the database
 each time they're called.''' but when in fact I check the source
 '''/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py'''
 line 130

 def get(self, *args, **kwargs):
          return self.get_query_set().get(*args, **kwargs)


 the method is use the cache of the querySet , and I need some help to know
 How do I use a query get() DO NOT Use a Cache, thanks many, btw sorry
 about my English.

 Rex

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19304>
Django <https://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 https://groups.google.com/groups/opt_out.


Reply via email to