CircleCI 4G内存泄漏 - Django迁移(CircleCI 4G memory breach - Django migrations)
我们正在为我们的Django / Python项目使用circleci。 虽然测试数据库正在作为TransactionTestCase的一部分进行设置,但内存开销高达~3g,因此突破了我们圈子ci环境的4g限制。 我使用ssh进行调试,发现一些测试并行运行,其中4g限制被破坏,因此循环ci构建失败。
在为测试设置数据库时,是否有减少内存占用的好方法?
任何帮助将不胜感激!
We are using circleci for our Django/Python project. While the test database is being setup as part of TransactionTestCase, the memory shoots up to ~3g and hence breaching the 4g limit of our circle ci environment. I debugged using ssh and found that some tests run in parallel where the 4g limit is breached and hence circle ci build fails.
Is there a good way to reduce the memory footprint while setting up databases for tests?
Any help will be greatly appreciated!
原文:https://stackoverflow.com/questions/43805063
最满意答案
我想你可以这样做:
ng-click="employee.nameEditor = undefined; employee.nameEditing = undefined;
如果您使用$ http角度服务将请求作为后端,它将自动消除具有未定义值的字段。
I think you can just do this:
ng-click="employee.nameEditor = undefined; employee.nameEditing = undefined;
and if you are using $http angular service to make the request to back end, it will automatically eliminate the fields with undefined values.
相关问答
更多-
是的,有问题,有时ng-click点火两次。 请检查: https://github.com/driftyco/ionic/issues/1022 : https://github.com/driftyco/ionic/issues/1022 他们提出了多种解决方案 Yes there is problem, sometimes ng-click fires twice. please check: https://github.com/driftyco/ionic/issues/1022 they hav ...
-
更新 我理解了这个问题,你可以通过在打开时将id传递给弹出控制器来解决这个问题。 以当前方式,您尝试直接从resolve选项将记录数据传递给弹出窗口。 通过这种方法可能会在您的应用程序中引入数据不一致。 让我解释一下这有可能吗? 考虑一个用户登陆页面的情况,该页面上有你正在显示的表格,然后他在那里停留10分钟,然后他打开记录。 开始了。 假设您遵循从该特定记录传递整个数据的第一种方法。 这样会弹出页面..但是这些数据可能已被某人更改。 并且您仍在显示旧数据,这将导致应用程序中的数据不一致。 在我建议的方法将 ...
-
嗨,你可以这样做:假设你的ng-repeat对象将在下面提到。