{{{
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.
* version: 1.11 => master
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
It should be straightforward to implement and test using
`assertNumQueries`.
Are you interested in working on a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:1>
Comment (by Raphaël Hertzog):
Replying to [comment:1 Simon Charette]:
> Are you interested in working on a patch?
It's not among my priorities, sorry. But once there's a fix, I hope it
will be backported to 1.11.
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:2>
Comment (by Tim Graham):
This doesn't qualify for a backport based on our
[https://docs.djangoproject.com/en/dev/internals/release-process
/#supported-versions supported versions policy].
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:3>
* cc: Herbert Fortes (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:4>
* owner: nobody => oliver
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:5>
Comment (by oliver):
Can I claim this ticket? I'm interested in this
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:6>
Comment (by oliver):
https://github.com/django/django/pull/10246
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:7>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:8>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"abd0ad7681422d7c40a5ed12cc3c9ffca6b88422" abd0ad76]:
{{{
#!CommitTicketReference repository=""
revision="abd0ad7681422d7c40a5ed12cc3c9ffca6b88422"
Fixed #29626, #29584 -- Added optimized versions of get_many() and
delete_many() for the db cache backend.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29584#comment:10>