From 989f6108d349e0eebdc5ad26b5cb4e882cb32e47 Mon Sep 17 00:00:00 2001 From: Akshesh Date: Wed, 24 Aug 2016 07:22:25 +0530 Subject: [PATCH] Added class-based indexes to 1.11 release notes. --- docs/releases/1.11.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index b9fe8de41d9..f50b0000164 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 ` 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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~