简体   繁体   English

具有大数据集的学说

[英]Doctrine with large datasets

Does anyone have experience using Doctrine with large datasets? 有谁有使用Doctrine处理大型数据集的经验? I have an import script that uses Doctrine and it uses way too much memory. 我有一个使用Doctrine的导入脚本,它使用了太多的内存。 The speed isn't a huge problem but the memory usage is. 速度不是一个大问题,但内存使用率却是。 Does anyone have any tips for keeping Doctrine's memory usage down? 有没有人有任何技巧可以降低Doctrine的内存使用率?

In Doctrine 1.2 at least, freeing objects after use frees up memory, which is recommended for long-running scripts: 至少在Doctrine 1.2中,使用后释放对象会释放内存,这对于长时间运行的脚本建议使用:

$my_object->free();

There's a few tips on improving performance at the end of the official guide: 官方指南的末尾有一些提高性能的提示:

http://www.doctrine-project.org/projects/orm/1.2/docs/manual/improving-performance/en http://www.doctrine-project.org/projects/orm/1.2/docs/manual/improving-performance/en

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM