django-fast-update
django-fast-update copied to clipboard
Faster db updates using UPDATE FROM VALUES sql variants.
Django's FileFields are very special under the hood. I wonder if we should implement support for them to some degree, esp. around the file contents (the db part should already...
I made the code compatible with psycopg 3. The code now works on psycopg2 and psycopg 3. I made a `compat_copy_from` as `connection.copy_from` is not available in psycopg 3 anymore...
There is a possible incongruency in fast_update (and copy_update), if the method gets called on a prefiltered queryset: - local field update path ignores any prefiltering - nonlocal field updates...
Big chance - 4.2 brings psycopg 3 support, which makes things alot easier and alot faster in the `copy_update` path. Downside - a partial reimplementation is needed to get things...
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...
Is upsert worth to be implemented in an optimized fashion? (either fast or copy path, or both?)
GIS fields are currently not supported by `copy_update`.
There is a possibility for a much faster `copy_create` alternative to `bulk_create`. From some initial tests that would be 10-20 times faster than the current implementation, but will have several...