Re: Cython usage within Django

2017-05-21 Thread Curtis Maloney
On 22/05/17 09:30, Tom Forbes wrote: Hey Karl and Russell, Thank you for your quick replies! Russell: You are of course right about the speed of the Python code itself being a bottleneck and the usual suspects like the database are more important to optimize. However I don't think it's

Re: PostgreSQL aggregation and views through unmanaged models

2017-05-21 Thread Josh Smeaton
> Therefore I'd favor we keep the current adjustment in the master branch as it > restores backward compatibility but I don't have strong feelings about reverting > it either if it's deemed inappropriate. Fixing the crash is the number 1 priority in my opinion, as it broke something that used

PostgreSQL aggregation and views through unmanaged models

2017-05-21 Thread charettes
Hello fellow developers, As some of you may know PostgreSQL 9.1 added support for GROUP'ing BY selected table primary keys[0] only. Five years ago it was reported[1] that Django could rely on this feature to speed up aggregation on models backed up by tables with either many fields or a few large

Re: Cython usage within Django

2017-05-21 Thread Tom Forbes
Hey Karl and Russell, Thank you for your quick replies! Karl: Agreed, duplicate CI runs would have to be performed (which would double the time or double the number of runners required). As I understand it the Django project itself would not distribute pre-compiled wheels, the setup.py Cython

Re: Cython usage within Django

2017-05-21 Thread Russell Keith-Magee
Hi Tom, My immediate reaction is No, for three reasons: 1. My experience has been that Cython isn’t especially stable.  Admittedly, I haven’t looked at it for a couple of years, but when I did, I ended up getting caught in some really nasty bugs that came back and forth between micro

Re: Cython usage within Django

2017-05-21 Thread 'Carl Meyer' via Django developers (Contributions to Django itself)
On 05/21/2017 02:59 PM, Tom Forbes wrote: > There are lots of considerations to take into account (like ensuring the > Cython functions are in sync with the fallback ones) It's possible to only have one version of the code, using only Python syntax, and conditionally compile it with Cython if

Cython usage within Django

2017-05-21 Thread Tom Forbes
Hello, There was a very interesting talk at Pycon about using Cython to speed up hotspots in Python programs: https://www.youtube.com/watch?v=_1MSX7V28Po It got me wondering about possibly using Cython in selected places within Django. I realize since Django was first released the distribution

Re: Missing support for gettext fallback translations

2017-05-21 Thread Patryk Zawadzki
W dniu niedziela, 21 maja 2017 01:35:28 UTC+2 użytkownik Ramiro Morales napisał: > > I'm also surprised by your findings. I guess it's something we simply took > for granted. It's mentioned in the [1]docs and has been so for [2]years. > It's not the same case though. Docs say that if `de-at` is

Re: Review of DEP 201 - simplified routing syntax

2017-05-21 Thread Aymeric Augustin
Hello, The technical board accepted DEP 201: https://github.com/django/deps/blob/master/accepted/0201-simplified-routing-syntax.rst Sjoerd has taken the lead on the implementation, please get in touch if