Skip to content

Commit

Permalink
Added class-based indexes to 1.11 release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
akki authored and timgraham committed Aug 25, 2016
1 parent 4bc6b93 commit 989f610
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/releases/1.11.txt
Expand Up @@ -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
--------------

Expand Down Expand Up @@ -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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 989f610

Please sign in to comment.