#27833: prefetch_related fails with SQLite when used with 1000 parent records
-------------------------------------+-------------------------------------
Reporter: Jason Barnabe | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: 1.10
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Another important point is that [https://sqlite.org/releaselog/3_32_0.html
SQLite 3.32] (released on 2020-05-22) increased the
[https://sqlite.org/limits.html#max_variable_number default upper bound]
on the number of [https://sqlite.org/lang_expr.html#varparam parameters]
from 999 to 32766 so while there is still a limit that warrants the usage
of `bulk_batch_size` users are way less likely to run into this issue than
before.
--
Ticket URL: <https://code.djangoproject.com/ticket/27833#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701948f0a196c-7c33971e-60e0-4ccf-8e50-9736741319ad-000000%40eu-central-1.amazonses.com.