[Django] #36420: Use actual SQLite limits in last_executed_query()
21 views
Skip to first unread message
Django
unread,
May 26, 2025, 10:51:32 AMMay 26
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36420: Use actual SQLite limits in last_executed_query()
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Type:
| Cleanup/optimization
Status: new | Component: Database
| layer (models, ORM)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
The SQLite backend’s `last_executed_query()` method does its own parameter
batching:
https://github.com/django/django/blob/b373721af0e5c3de0986977ac07e3ad55061ecbe/django/db/backends/sqlite3/operations.py#L154-L179
The comment there from Aymeric notes that “Since Python's sqlite3 module
doesn't expose the get_limit() C API, assume the default limits are in
effect...”.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36420: Use actual SQLite limits in last_executed_query()
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36420: Use actual SQLite limits in last_executed_query()
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner:
Type: | myoungjinGo
Cleanup/optimization | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#36420: Use actual SQLite limits in last_executed_query()
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner:
Type: | myoungjinGo
Cleanup/optimization | Status: closed
Component: Database layer | Version: dev
(models, ORM) |