Peter Phillip

Results 20 comments of Peter Phillip

hi @binita-engg89 does your model return data on its own? if you call purchase::all();

I have the same situation... the model::addAllToIndex causes a 502 gateway, basically times out

@alongmuaz 10 thousand in one hour sounds too long, i managed to sort my issue out, and this was the solution. 446 thousand records took about 3mins. This was in...

@alongmuaz yes, check this out: https://laravel.com/docs/5.3/artisan#writing-commands

@Dmitri10 this could be slowing it down? ``` $users->each(function ($user) { $user->addToIndex(); }); ``` You can use the bulk function that basically takes the chunk and inserts into elastic, also...

@Dmitri10 possibly so, i ran this test on a virtual box with 2 gigs ram you can directly index from sql to elastic, that could work for you? using JDBC...

Enjoy! it would be a great solution without the overhead of laravel

this one https://github.com/jprante/elasticsearch-jdbc

There are cool examples with it, its standalone; it runs on your server/box independently

@Dmitri10 true, however most of those issues are just lack of understanding from most users. Its a really straight forward solution to execute :) When i tried it out, i...