﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37451	`QuerySet.get()` must not pull more than 2 rows with `DEBUG=False`	Sobolev Nikita		"Refs https://code.djangoproject.com/ticket/6785

Source:
- https://github.com/django/django/blob/8e4e95da9b5b751923cd80989d9ece4b6c6fb1a3/django/db/models/query.py#L58-L59
- https://github.com/django/django/blob/8e4e95da9b5b751923cd80989d9ece4b6c6fb1a3/django/db/models/query.py#L741-L746

While this is helpful for debug inforation, it can potentially slow down production requests. With fetching 19 more entries.
This can be especially slow in cases when `full-scan` is used.

I propose limitting this value to `2` with `DEBUG=False`. This keeps the best of two worlds:
- Better debug inforation in `DEBUG` mode
- Faster code in production"	Uncategorized	new	Database layer (models, ORM)	6.1	Low		queryset, orm, database	Sobolev Nikita	Unreviewed	0	0	0	0	1	0
