Hi,
-- We are using django for our ecommerce website.
I am facing a strange issue. I was trying to index a field in a table and hence, set db_index=True in the field declaration. I ran migrations but when I checked the indexes for the table, the index for the field wasn't there. There were also few foreign key fields but no indexes for them as well. The migration didn't throw any error. Hence, I am a bit perplexed.
Would appreciate if anyone could help me with the above.
Also, can I create indexes directly in the database (not via django)? Will that have any issue in Django.
I am using Django 1.11. MySQL is 5.6.
Thanks.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2b5b6f3d-a704-46f6-9506-c0a47cdead26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment