dsbiw2911188 2016-10-20 03:17
浏览 29

symfony的findAll函数中允许的最大元组数[关闭]

I have a database with a table that has more than 5000 tuples, and when i do the findAll() in the Symfony Controller i get error 500.

So i'm looking for the maximum number of tuples that Doctrine can handle with and if this number can be changed.

  • 写回答

1条回答 默认 最新

  • doupu3211 2016-10-20 06:47
    关注

    Most of Doctrine's limits are resource constraints, especially RAM. Please take a look at it's batch processing for workawords. Matters are made worse when you are doing several joins in big queries especially because of hydration, you can read more about it from a core dev here. Therefore, it really isn't right to say that doctrine has a limit per say, a lot depends on the schema and query, for further assistance could you share your schema, query and php version and settings for max_execution, and memory limit. Also consider enabling caches if you haven't.

    评论

报告相同问题?

悬赏问题

  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失