diff options
| author | JaeHyuck Sa <wogur981208@gmail.com> | 2026-01-15 08:06:06 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-16 09:15:53 -0500 |
| commit | b98075dc6205374746cf1ad6d3533b9a1d9cf22e (patch) | |
| tree | 2c227604a0fd4e8ac7572942592557b9323e7709 /django/db/backends/sqlite3/operations.py | |
| parent | 07a16407452f5b62594661ae7ae589eca8cccd4d (diff) | |
Refs #36822 -- Hoisted bulk_batch_size() implementations to base backend.
Diffstat (limited to 'django/db/backends/sqlite3/operations.py')
| -rw-r--r-- | django/db/backends/sqlite3/operations.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index ac98324b2e..23c17054d2 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -29,26 +29,6 @@ class DatabaseOperations(BaseDatabaseOperations): # SQLite. Use JSON_TYPE() instead. jsonfield_datatype_values = frozenset(["null", "false", "true"]) - def bulk_batch_size(self, fields, objs): - """ - SQLite has a variable limit defined by SQLITE_LIMIT_VARIABLE_NUMBER - (reflected in max_query_params). - """ - fields = list( - chain.from_iterable( - ( - field.fields - if isinstance(field, models.CompositePrimaryKey) - else [field] - ) - for field in fields - ) - ) - if fields: - return self.connection.features.max_query_params // len(fields) - else: - return len(objs) - def check_expression_support(self, expression): bad_fields = (models.DateField, models.DateTimeField, models.TimeField) bad_aggregates = (models.Sum, models.Avg, models.Variance, models.StdDev) |
