douzou0073 2018-09-05 08:35
浏览 155

Laravel MySQL查询内存不足

I have an old Laravel-5.1 app that I'm trying to update to a later version.

I've started by updating PHP from 5.6.x to 7.1.20.

When testing, a simple SQL query makes the system run out of memory:

DB::table('my_table')->where('onHold', 0)->where('status', 'OPEN')->first();

There are only eight rows in the table.

Error message: PHP Fatal error: Out of memory (allocated 7528775680) (tried to allocate 7514099712 bytes)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 chaquopy python 安卓
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 有没有帮写代码做实验仿真的
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥30 vmware exsi重置后登不上
    • ¥15 易盾点选的cb参数怎么解啊
    • ¥15 MATLAB运行显示错误,如何解决?
    • ¥15 c++头文件不能识别CDialog
    • ¥15 Excel发现不可读取的内容
    • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题