I have a MySQL database that I did not create with Django. It has mixed storage engines for tables. I need to tell Django which storage engine it should use for which table. Is there any way I can do that?
I' ve seen an approach that inside the DATABASES dictionary in settings.py two separate database connections are defined, each with separate storage engine (as described here: Django set Storage Engine & Default Charset), but that adds extra complexity when using django querysets, because I need to remember then what kind of storing engine is being used in each table.
pseudo code of what I want to achieve
class Model_1(models.Model):
# using InnoDB
class Model_2(models.Model):
# using MyISAM