mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29614 -- Added BTreeIndex to django.contrib.postres.
This commit is contained in:
@@ -26,6 +26,20 @@ available from the ``django.contrib.postgres.indexes`` module.
|
||||
|
||||
The ``autosummarize`` parameter was added.
|
||||
|
||||
``BTreeIndex``
|
||||
==============
|
||||
|
||||
.. class:: BTreeIndex(fillfactor=None, **options)
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
Creates a B-Tree index.
|
||||
|
||||
Provide an integer value from 10 to 100 to the fillfactor_ parameter to
|
||||
tune how packed the index pages will be. PostgreSQL's default is 90.
|
||||
|
||||
.. _fillfactor: https://www.postgresql.org/docs/current/static/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS
|
||||
|
||||
``GinIndex``
|
||||
============
|
||||
|
||||
|
||||
@@ -82,9 +82,10 @@ Minor features
|
||||
:class:`~django.contrib.postgres.aggregates.StringAgg` determines the
|
||||
ordering of the aggregated elements.
|
||||
|
||||
* The new :class:`~django.contrib.postgres.indexes.HashIndex` and
|
||||
* The new :class:`~django.contrib.postgres.indexes.BTreeIndex`,
|
||||
:class:`~django.contrib.postgres.indexes.HashIndex` and
|
||||
:class:`~django.contrib.postgres.indexes.SpGistIndex` classes allow
|
||||
creating ``hash`` and ``SP-GiST`` indexes in the database.
|
||||
creating ``B-Tree``, ``hash``, and ``SP-GiST`` indexes in the database.
|
||||
|
||||
* :class:`~django.contrib.postgres.indexes.BrinIndex` now has the
|
||||
``autosummarize`` parameter.
|
||||
|
||||
Reference in New Issue
Block a user