Changes between Initial Version and Version 2 of Ticket #36088


Ignore:
Timestamp:
Jan 12, 2025, 1:16:15 AM (6 hours ago)
Author:
Simon Charette
Comment:

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  
    3535which has [https://forum.djangoproject.com/t/speeding-up-postgres-bulk-create-by-using-unnest/36508 demonstrated benefits].
    3636
    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 avoided
     37Secondly, 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
    3838
    3939{{{#!sql
Back to Top