-
-
Save brunomichetti/716458c29b18656015c40106fbeea4e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [57]: user_count = User.objects.count() | |
In [58]: user_count = len(User.objects.all()) | |
In [59]: connection.queries | |
Out[59]: | |
[{'sql': 'SELECT COUNT(*) AS "__count" FROM "users_user"', 'time': '0.007'}, | |
{'sql': 'SELECT "users_user"."id", "users_user"."password", | |
"users_user"."last_login", "users_user"."is_superuser", "users_user"."username", | |
"users_user"."email", "users_user"."is_staff", "users_user"."is_active", | |
"users_user"."date_joined", "users_user"."name" FROM "users_user"', | |
'time': '0.010'}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment