samedi 3 février 2018

laravel mongodb jenssegers allowDiskUse true

I use laravel mongodb jenssegers . I want to query a huge amount of data with order by and this is my query :

$stores = \App\StoreTransaction::where('date_time','>',1489944515)
        ->orderBy('date_time', 'asc')->get();

But I got this error:

Sort exceeded memory limit of 104857600 bytes

I know I should add allowDiskUse true to my query but how can i add it to mongodb jenssegers package ?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nDw9PD
via IFTTT

Aucun commentaire:

Enregistrer un commentaire