samedi 9 février 2019

Laravel relationship is slow

I try to run this code

Item::with('product_saves')->whereHas('product_saves', function($q){ 
    $q->where('user_id', 4)
});

but is so slow my database has more than 1M records. any solution or suggestion?. thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire