Re: Implement a custom range-based filter for date_heirarchy

2017-12-16 Thread Haki Benita
Hey Aymeric, Performace issues I experienced with date hierarchy are: 1. The query generated by the filter for the list view is not utilizing range indexs - I hope this PR will resolve this issue. 2. The date hierarchy template tag generate a list of distinct values for the hierarchy level - I

Re: Vendoring Select2

2017-12-16 Thread Dylan Reinhold
Mithlesh, The django project web sites has a page about how to contribute : https://code.djangoproject.com/#Gettinginvolved On Sat, Dec 16, 2017 at 5:35 PM, Mithlesh Kumar < mithlesh.kumar.4...@gmail.com> wrote: > Hi, > > I'm very new to Open Source. I like to contribute to `Django`. How can I

Re: Vendoring Select2

2017-12-16 Thread Mithlesh Kumar
Hi, I'm very new to Open Source. I like to contribute to `Django`. How can I do so ? Thanks Mithlesh K -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop

Re: Vendoring Select2

2017-12-16 Thread Jamesie Pic
Note that jquery-autocomplete could be a backup solution in case select2 looses maintainer traction in the future. ​ https://www.devbridge.com/sourcery/components/jquery-autocomplete/ Best <3 -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Implement a custom range-based filter for date_heirarchy

2017-12-16 Thread Aymeric Augustin
Hello Haki, Yes, I always found that SQL query weird, I think we can do better. I didn't review your implementation but I wanted to encourage you anyway :-) This optimization matters for large tables. In that case, finding all the years / months / days for which objects exist in the database

Re: Implement a custom range-based filter for date_heirarchy

2017-12-16 Thread charettes
Hello Haki, I think the optimizations you are suggesting and the way you've implemented them make a lot of sense. I left a few comments on your PR[0] regarding the template tag in charge of rendering the date hierarchy header in the list view which could benefit from the same optimization but

Re: Django benchmark is low

2017-12-16 Thread Jamesie Pic
Well, they're using tornado as frontend serveur, perhaps they should try with uwsgi. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Django benchmark is low

2017-12-16 Thread Aymeric Augustin
Hello Gary, https://www.techempower.com/benchmarks/#section=data-r14=ph=plaintext says Django can serve 88,019 requests per second. That's about 11µs per request (1µs = 1e-6s). Response times for Django-powered sites are

Implement a custom range-based filter for date_heirarchy

2017-12-16 Thread Haki Benita
Hey, I'm a new member to this group and I would like to suggest implementing a custom filter for date_hiearchy. The date_hierarchy filter is currently relying on the default filter implementation by Django Admin. *I think we can use the heirarchical nature of the date hierarchy to generate a