diff options
| author | Akshesh <aksheshdoshi@gmail.com> | 2016-08-24 07:22:25 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-25 09:51:54 -0400 |
| commit | 989f6108d349e0eebdc5ad26b5cb4e882cb32e47 (patch) | |
| tree | 9fc824cba2b14afd9f2914fde67130bad931b1ee /docs | |
| parent | 4bc6b939944183533ae74791d21282e613f63a96 (diff) | |
Added class-based indexes to 1.11 release notes.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.11.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index b9fe8de41d..f50b000016 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -46,6 +46,20 @@ be compatible with Django 2.0. What's new in Django 1.11 ========================= +Class-based model indexes +------------------------- + +The new :mod:`django.db.models.indexes` module contains classes which ease +creating database indexes. Indexes are added to models using the +:attr:`Meta.indexes <django.db.models.Options.indexes>` option. + +The :class:`~django.db.models.Index` class creates a b-tree index, as if you +used :attr:`~django.db.models.Field.db_index` on the model field or +:attr:`~django.db.models.Options.index_together` on the model ``Meta`` class. +It can be subclassed to support different index types, such as +:class:`~django.contrib.postgres.indexes.GinIndex`. It also allows defining the +order (ASC/DESC) for the columns of the index. + Minor features -------------- @@ -112,6 +126,9 @@ Minor features :class:`~django.contrib.postgres.aggregates.StringAgg` determines if concatenated values will be distinct. +* The new :class:`~django.contrib.postgres.indexes.GinIndex` class allows + creating gin indexes in the database. + :mod:`django.contrib.redirects` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
