netzkolchose / django-fast-update

Faster db updates using UPDATE FROM VALUES sql variants.
MIT License
21 stars 2 forks source link

needs a better pk duplicate handling #13

Open jerch opened 2 years ago

jerch commented 2 years ago

With #12 we introduced set based pk duplicate detection in python, which is not how it should be done. We simply cannot do that solely in python, as the db might apply different rules for identity checks.

On the other hand we also cannot simply ignore duplicates and let the db "somehow" deal with them, as it might surface db differences:

jerch commented 2 years ago

Ideas to solve the duplicate detection: