r4fek / django-cassandra-engine

Django Cassandra Engine - the Cassandra backend for Django
BSD 2-Clause "Simplified" License
365 stars 85 forks source link

Allow "schema_metadata_enabled" set to False in the connection options #105

Closed bowensong closed 6 years ago

bowensong commented 6 years ago

This patch allows the schema_metadata_enabled (link to the doc) connection option set to False in the database settings.

Set this option to False is useful on large production environment with many client applications starting at the same time. It reduces loads on Cassandra server and speeds up the Django startup.

Note: When the schema_metadata_enabled option is set to False, the sync_cassandra command will not work. One should run the sync_cassandra command with a different settings file where schema_metadata_enabled is set to True (the default).

bowensong commented 6 years ago

The CI build failed because of the djangorestframework package update, that should be fixed in a separate PR as far as I can tell.

r4fek commented 6 years ago

Thank you very much for this change!