Details
-
Type: Task
-
Status: New
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: Current Version
-
Fix Version/s: TAG 2016/17 Summer Semester
-
Component/s: OIOIOI
-
Labels:None
Description
It's quite easy to generate linear number of sql queries in django. It's hard to detect without a large database and django toolbar, so its usally detected during programming contests.
To avoid such situation IMHO we should test number of sql queries in unit tests. Django supports it:
https://docs.djangoproject.com/en/1.5/topics/testing/overview/#django.test.TestCase.assertNumQueries
The task is to add such assertion to each unit test.
To avoid such situation IMHO we should test number of sql queries in unit tests. Django supports it:
https://docs.djangoproject.com/en/1.5/topics/testing/overview/#django.test.TestCase.assertNumQueries
The task is to add such assertion to each unit test.
Activity
- All
- Comments
- History
- Activity
- Transitions
- Commits