bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 423 forks source link

Django 1.11 support #463

Closed stephane closed 7 years ago

stephane commented 7 years ago

Tested with 1.11rc1 and 1.10 (Python 3.6). I don't now if the Travis rule is able to select RC1 or if it follows the pip convention (so to replace by 1.11rc1 in waiting for stable release).

The change DatabaseWrapper._cursor() -> .cursor() will now generate server side cursors in Django 1.11 for iterator(). Cf django/django#7587

Our unit tests are slightly slower (about 8%) with Django 1.11 (6.30s) than Django 1.10 (5.84s) but I don't know why.

Note: benchmarks are just best of 5 runs on my computer, unit tests doesn't represent real cases....

empiricalthought commented 7 years ago

I ran into the issues this PR fixes while trying to get a Django 1.11 project off the ground... is there anything I can do to help move it along? Thanks.