django-bulk-sync
django-bulk-sync copied to clipboard
Combine bulk add, update, and delete into a single call.
Please add test case, when key_fields=['pk']. bulk_sync. get_field('pk') raises FieldDoesNotExist https://github.com/mathandpencil/django-bulk-sync/blob/8b4dc964e86fbf96d91a86b64343f642f8e311b4/bulk_sync/__init__.py#L87
Currently all objects that match `filters` are fetched from the database. If there are a lot of these and few matching objects in `new_models`, this isn't very efficient. It seems...
How to handle one to one reverse relationship in ignored_fields when using `bulk_compare`? So reverse one to one relationship is `obj.weeklyptoaccrualsyncprofile` for this model, so I passed `ignore_fields=["weeklyptoaccrualsyncprofile_id"]` but I...
Replace bulk_create with iteration in atomic transaction in a multi-table inheritance scenario. ```python if is_multitabel_inheritance(self.model): with transaction.atomic(): for obj in objs: obj.save() return objs def is_multitabel_inheritance(cls): for parent in cls._meta.get_parent_list():...
See https://github.com/mathandpencil/django-bulk-sync/issues/17#issuecomment-674982111. I want to change the delete() approach to not signal django post_delete hooks, since bulk_create and update do not. Also, document that this library will not signal.