Changes between Initial Version and Version 1 of Ticket #31202, comment 3
- Timestamp:
- Jan 23, 2020, 11:07:04 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31202, comment 3
initial v1 1 From looking at the profiles the performance boostis likely due to the fact Django uses `Case`, `When`, and `Value` expressions that needs to be resolved [https://github.com/aykut/django-bulk-update/blob/399e64d820133a79f910682c1cf247938c5c4784/django_bulk_update/helper.py instead of raw SQL like the third party package does].1 From looking at the profiles the performance issue is likely due to the fact Django uses `Case`, `When`, and `Value` expressions that needs to be resolved [https://github.com/aykut/django-bulk-update/blob/399e64d820133a79f910682c1cf247938c5c4784/django_bulk_update/helper.py instead of raw SQL like the third party package does]. 2 2 3 3 I suspect using `RawSQL` with `CASE`/`WHEN` SQL templates instead of `Case`/`When` expressions would significantly speed up the current implementation.