Changes between Initial Version and Version 2 of Ticket #36088
- Timestamp:
- Jan 12, 2025, 1:16:15 AM (6 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36088
- Property Summary Avoided unnecessary DEFAULT usage on bulk_create. → Avoid unnecessary DEFAULT usage on bulk_create for models with db_default fields
-
Ticket #36088 – Description
initial v2 35 35 which has [https://forum.djangoproject.com/t/speeding-up-postgres-bulk-create-by-using-unnest/36508 demonstrated benefits]. 36 36 37 Secondly, pruning the field would avoid having to provide the `db_default` expression for all model instances on backends that don't support `DEFAULT` in bulk-inserts such as Oracle . In other words the following SQL would be avoided37 Secondly, pruning the field would avoid having to provide the `db_default` expression for all model instances on backends that don't support `DEFAULT` in bulk-inserts such as Oracle and SQLite. In other words the following SQL would be avoided 38 38 39 39 {{{#!sql