Re: PostgreSQL Partial Indexes package

2018-11-17 Thread Sergey Fursov
Hi everyone, In our company, we also use the ability to define our own indexes, but with the current implementation of base Index class, we basically need to copy several methods entirely from it. What do we want is implement UNIQUE indexes with the UPPER function wrapper around field names [1]. T

Re: PostgreSQL Partial Indexes package

2017-10-20 Thread Ashley Waite
I did a similar thing (but only tested in postgres) a while back, using Q's / filter clause to generate the where clause. Perhaps with our powers combined we're close to a generalised implementation? https://github.com/ashleywaite/django-more/blob/master/django_more/indexes.py On Saturday, O

Re: PostgreSQL Partial Indexes package

2017-10-08 Thread Adam Johnson
It looks to me that the same trick on Oracle can be used on MySQL/MariaDB - indexing a generated column. There's a comment on https://mariadb.com/kb/en/library/generated-columns/ to that effect. P.S. Drizzle is long dead, the site isn't even up any more :) On 8 October 2017 at 12:38, Tim Allen w

Re: PostgreSQL Partial Indexes package

2017-10-08 Thread Tim Allen
I would love to see partial indexes supported. Great work! As far as databases with Django support: - PostgreSQL supports partial indexes - SQLite supports partial indexes - SQL Server supports them, called "filtered indexes" - Oracle: Sort of supports them: https://blog.jooq.org/2017/01/18/how-