Use bulk_operations when loading items

This has been causing a huge memory leak, wrapping the call in this
context manager properly cleans up the 'records' entries.

EDUCATOR-274
This commit is contained in:
Eric Fischer
2017-07-25 10:38:50 -04:00
parent bc6d7980a4
commit d4943c5337
4 changed files with 7 additions and 6 deletions

View File

@@ -318,7 +318,7 @@ class TestCourseListing(ModuleStoreTestCase, XssTestMixin):
)
@ddt.data(
(ModuleStoreEnum.Type.split, 3, 13),
(ModuleStoreEnum.Type.split, 4, 23),
(ModuleStoreEnum.Type.mongo, USER_COURSES_COUNT, 2)
)
@ddt.unpack