I saw that django is executing sql queries with limit set to 21 whenever i try to use get method to fetch one result.
ex.
User.objects.get(email='[email protected]')
"""
SQL:
SELECT "account_user"."username",
"account_user"."email"
FROM "account_user"
WHERE "account_user"."email" = '[email protected]'
LIMIT 21
"""
This was case for all of the models.
I know django checks if there are multiple results and throws error, but for that can't it just set limit to 2?
And how would this impact speed of our sql query.