laravel-elasticsearch icon indicating copy to clipboard operation
laravel-elasticsearch copied to clipboard

Feature/unsafe queries / Bug Fix Losing Connection

Open use-the-fork opened this issue 4 months ago • 1 comments

This PR aims to add a new option to allow a developer to opt into using "unsafe_queries". Essentially It's supposed to skip mapping checks and avoid doing any elastic search calls Except for when getting database info.

This is mostly needed from a performance perspective.

I also am running into a weird issue where save and saveWithOutRefresh lose their connection and as a result throw an exception. I can't replicate it in tests just in my environment that uses a Cloud connection. As a result, I added safety measures to ensure a connection existed before building the bridge.

use-the-fork avatar Oct 09 '24 15:10 use-the-fork