#29584: cache.backends.db does not implement get_many
------------------------------------------------+------------------------
               Reporter:  Raphaƫl Hertzog       |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Core (Cache system)   |        Version:  1.11
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 The documentation of `get_many` in
 django.core.cache.backends.base.BaseCache implies that the implementation
 of the method for a database backend can be much faster:

 {{{
         Fetch a bunch of keys from the cache. For certain backends
 (memcached,
         pgsql) this can be *much* faster when fetching multiple values.
 }}}

 However when I look into django.core.cache.backends.db I don't see any
 `get_many` implementation meaning that retrieving 1000 entries from the
 cache will do 1000 queries instead of just one. This is really sad and
 makes this backend a no-go for any heavy usage of the cache.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29584>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.a6b990269789b4fa884d0042fbd5540d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to