#28046: Add tablespace support to Index class
-------------------------------------+-------------------------------------
Reporter: Markus | Owner: nobody
Holtermann |
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
For now, the `django.db.models.indexes.Index` class determines a non-
default tablespace from its model field if the index is defined on a
single field (`Field.db_tablespace`) or from a model's
`_meta.db_tablespace` for multi-column indexes. Indexes on expressions,
however, won't be able to identify which columns they refer to.
The initial API design would be to add `db_tablespace` or `tablespace` as
an attribute to the `Index` class and use that if provided, and fallback
to the current behavior if not given.
--
Ticket URL: <https://code.djangoproject.com/ticket/28046>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.77c36d75a100cd8492c6c4f602078fbd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.