arctushar
1 year ago

max memory failed

Posted 1 year ago by arctushar
$datas=Sector::with(['codelists'=>function($query)use($date1,$logicarray){
    $query->select('id','sector_id','code')->with(['dsedata'=>function($query)use($date1){
    $query->select('trade','id','ltp','codelist_id','date','value','volume','time')->where('dsedatas.date',$date1);
}]);
}])->get(); 

I have above code. There are total 9 sectors, 352 codelists, 882595 dsedata .

is there any way to reform the above code so that it works fine and light ?

Please sign in or create an account to participate in this conversation.