I am trying to use citus data (https://www.citusdata.com/) with Django.
Most everything is working so far, except trying to save
a model that has already been saved:
NotSupportedError: modifying the partition value of rows is not allowed
This is because django always includes every single field in the update SQL, even if that field has not changed.
In Citus, you must pick a field to be your partitioning field, and then you cannot change it. So, when I'm saving an object, it doesn't like that the partition key is in the update statement, even if it didn't change.
I know that you can pass the update_fields
keyword arg to the save
method, but I'm wondering if I can somehow tell django to NEVER include a field when updating?