Disable scout during import #4063
philharmonie
started this conversation in
Ideas
Replies: 3 comments
-
Perhaps try using BatchInserts, that should already skip Scout I think. If not, I think it's better to ask on Laracasts or another Laravel-related forum. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why not implementing something like:
or alternatively a setting in the config |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could also use on each row concern if you don't use batch inserts. In there you can call save yourself. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am importing a very big excel sheet and I am using scout's
Searchable
Trait on my model. The import process fills up the CPU load because every row triggers the scout import. Is there a way to globally disable the scout import during the import? I triedwithoutSyncingToSearch
in themodel
function before returning the model, but there seem to be side effects.Beta Was this translation helpful? Give feedback.
All reactions