You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.
Sometimes my servers lose a connection, or there's a database issue, and a rogue row gets left in ES, that is not in my database. It's not terribly important for me.
Ideally I'd rescue it to delete the missing row and return the result.
Initially it sounds simpler to just monkey-patch around raising this error, to silently return whatever results could be found.
Any tips where in the source to start looking? Load: true is difficult to search for...
Thanks for a great project :)
The text was updated successfully, but these errors were encountered:
Hi, the hook point for the monkeypatch is the Tire::Results::Collection#__find_records_by_ids. Just override it by using where(ids:...) instead of find(ids) for ActiveRecord. Please ping me if you'd have trouble with it.
Sometimes my servers lose a connection, or there's a database issue, and a rogue row gets left in ES, that is not in my database. It's not terribly important for me.
Ideally I'd rescue it to delete the missing row and return the result.
Initially it sounds simpler to just monkey-patch around raising this error, to silently return whatever results could be found.
Any tips where in the source to start looking? Load: true is difficult to search for...
Thanks for a great project :)
The text was updated successfully, but these errors were encountered: