I am doing a bulk insert in Laravel like
\App\Example::insert([ [ 'name' => 'abc', 'value' => '123', ], [ 'name' => 'def', 'value' => '456', ], // etc... ]);
This will do a bulk insert, one query but still inserting many rows at once.
The problem is that when I use insert()
the rows doesnt get inserted to Algolia. So how can I do a bulk insert to Algolia as well?
I dont want to loop through my rows and do a insert one by once since this will cost extra requests
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire