django-cassandra-engine icon indicating copy to clipboard operation
django-cassandra-engine copied to clipboard

MaterializedViews / preventing models synchronization

Open Troyhy opened this issue 7 years ago • 3 comments

Cassandra driver does not support MaterializedViews as now, but I found out that you can use them anyway, just describe your model and start querying on matching materialized view.

So it almost works with cassandra-engine too. Only problem is that synchronizing database will create actual table from your "MaterializedView" model and if the materialized view exists synchronization will crash, because if exists clause does not catch that there is materialized view with that name.

So I'm looking way to tell cassandra_sync that do not try to synchronize this model. I found out that Meta class options proxy=True or manage=False will not prevent creation of table.

Any ideas how to solve this issue?

Troyhy avatar Mar 06 '18 10:03 Troyhy

I am interested in this too

SeverinAlexB avatar Nov 14 '18 07:11 SeverinAlexB

I subscribe to the issue, and could not solve the problem.

kovarden avatar Dec 19 '20 20:12 kovarden

Any updates on this?

peternavr avatar Sep 08 '22 23:09 peternavr