I am exploring Django with MySQL & have a few things that I wanted to discuss -
- How can I add an index (on some field)? Can I do it through the Django Model Layer?
- If I want to migrate some old data into these new DB tables/models, will I have to write some script myself or does Django provide schema to schema mapping tools?
- If I need to change the schema for the existing Django Models, then what's the easiest way to do this? I know this depends on my schema but is it as simple as create a new column & run
python manage.py syncdb
? - Lastly how do I profile MySQL db of all the queries I run from Django Models? I am looking for something like
DEBUG=True and TEMPLATE_DEBUG=True
kind of solution, where I'll get the query performance (runtime etc.) on the browser.
Thanks in advance...