Do django db_index migrations run concurrently? -


i'm looking add multi-column index postgres database. have non blocking sql command looks this:

create index concurrently shop_product_fields_index on shop_product (id, ...); 

when add db_index model , run migration, run concurrently or block writes? concurrent migration possible in django?

there no support postgresql concurent index creation in django.

here ticket requesting feature - https://code.djangoproject.com/ticket/21039

but instead, can manually specify custom runsql operation in migration - https://docs.djangoproject.com/en/1.8/ref/migration-operations/#runsql


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -