Re: Change Local Memory Cache to Use LRU #28977

2018-01-08 Thread Josh Smeaton
Nice to meet you too. Your benchmarking code was extremely handy when I was profiling lru-cache-backend, so thank you! Are you able to run the same benchmarks using this version of the cache to see how it performs in low/medium/high eviction scenarios? I think those benchmarks will be nicer

Re: Change Local Memory Cache to Use LRU #28977

2018-01-08 Thread Grant Jenks
Josh, it's nice to meet you here. I cited your django-lrucache-backend project in the original post of the Trac ticket. I'm also the author of DiskCache http://www.grantjenks.com/docs/diskcache/ which your project refs for benchmarks :) I added some benchmark data to the Trac ticket which may

Re: Sealing or locking QuerySets -- a suggestion to prevent surprise N+1 queries.

2018-01-08 Thread Gordon Wrigley
Regarding auto prefetch, after the discussion here I created a ticket https://code.djangoproject.com/ticket/28586 It didn't get much attention presumably because it was around Django 2 release time. I have a todo note to add tests and doco and generally get it to a mergable state in order to

Re: QueryDict and ordering

2018-01-08 Thread Ole Laursen
2018-01-05 19:24 GMT+01:00 Tim Graham : > Preservation of dict ordering is guaranteed in Python 3.7+ so that > officially fixes this, correct? > https://mail.python.org/pipermail/python-dev/2017-December/151283.html Sure, I can wait for that. Sorry for the noise, I should