How to create bitmap indexes in Django

Viewed 120

What is the canonical way of creating bitmap indexes in Django?

Customized migration using RunSQL opeartion? How to maintain the indexes afterwards also raw queries?

class Migration(migrations.Migration):

    dependencies = [
        # Dependencies to other migrations
    ]

    operations = [
        migrations.RunSQL(
          sql="CREATE BITMAP INDEX name  ON table (column);"
          reverse_sql = ...
      ),
    ]
0 Answers
Related