diff options
| author | Sage Abdullah <me@laymonage.com> | 2025-05-08 09:10:44 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-05-08 11:37:11 +0100 |
| commit | 358fd21c47cdf7bda520ce73c5cfd82bba57827b (patch) | |
| tree | 12b5c91b138d9f22eafcbff98df0740a318f1a81 /django/db/backends/sqlite3/operations.py | |
| parent | 38660a612cd924199df83b93807604cadf6d5125 (diff) | |
Fixed #36143 -- Made max_query_params respect SQLITE_LIMIT_VARIABLE_NUMBER.
Co-authored-by: Xavier Frankline <xf.xavierfrank@gmail.com>
Diffstat (limited to 'django/db/backends/sqlite3/operations.py')
| -rw-r--r-- | django/db/backends/sqlite3/operations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index 0ab853f766..340bd28ef8 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -30,8 +30,8 @@ class DatabaseOperations(BaseDatabaseOperations): def bulk_batch_size(self, fields, objs): """ - SQLite has a compile-time default (SQLITE_LIMIT_VARIABLE_NUMBER) of - 999 variables per query. + SQLite has a variable limit defined by SQLITE_LIMIT_VARIABLE_NUMBER + (reflected in max_query_params). If there's only a single field to insert, the limit is 500 (SQLITE_MAX_COMPOUND_SELECT). |
