Re: remove_stale_contenttypes doesn't remove entries for renamed apps.

2020-01-02 Thread Adam Johnson
I guess an optional kwarg would be okay then. On Thu, 2 Jan 2020 at 03:08, Javier Buzzi wrote: > @adam I agree with your points, about data loss, but this can still see > this as being beneficial, perhaps the approach was just too harsh. Perhaps > adding a flag in the management command would ge

Re: Potential performance related bug in django`s Queryset.get().

2020-01-02 Thread Anudeep Samaiya
Thanks for the revert, I completely agree with both of your explanations. Thanks Anudeep Samaiya > On 02-Jan-2020, at 21:51, charettes wrote: > > Hey there! > > The current code assumes that .get() will likely match one result which > should be the case > most of the time and limit the number

Re: Potential performance related bug in django`s Queryset.get().

2020-01-02 Thread charettes
Hey there! The current code assumes that .get() will likely match one result which should be the case most of the time and limit the number of possible results to prevent catastrophic matches Your patch has the side effect of performing an additional COUNT query for every single QuerySet.get()

Re: Potential performance related bug in django`s Queryset.get().

2020-01-02 Thread Adam Johnson
Hi Anudeep Your change makes get() perform an extra query for count() before it . This would be a regression for most uses of get(). get() is not intended for use "when multiple objects exists in very big numbers". You may want to perform a single query, something like Model.objects.filter(id__in

Potential performance related bug in django`s Queryset.get().

2020-01-02 Thread Anudeep Samaiya
Hi everyone, Happy New Year!! Ok so I found that Querset.get() is very slow for large datasets when multiple objects exists in very big numbers. I did following changes in my local copy of django code and it improved the performance for very large data sets significantly (like in a blink of se

Re: Sounding out for GSoC 2020.

2020-01-02 Thread Carlton Gibson
Hi Aaryan, Happy New Year! Thanks for your interest, and your comment on my presentation :) I will write up the project ideas shortly, and try to give some guidance, but I imaging the "secrets abstraction" idea wouldn't be too hard: look at, say, Vault, and the AWS offering, what are the comm

Re: Fellow Reports -- December 2019

2020-01-02 Thread Carlton Gibson
Hi all. Calendar Week 51 -- ending 22 December. Triaged: https://code.djangoproject.com/ticket/31103 -- Pagination documentation is missing some important detail (Accepted) https://code.djangoproject.com/ticket/31102 -- Bug: Saving on a ModelAdmin with TabularInlines sometimes duplicates ro