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
The thing is, if I do the scope :search_import, -> { includes( :ordered_b) } the has many relation is not being loaded, and search_data is empty. If I dont do it, reindexing takes longer because it needs to do the query for each object, but the resulting object has the correct data loaded to elastic.
I dont know if its a bug or is just that doing that kind of scoped import is not supported. I cannot import the whole :b relationship because in some instances Ive got too many records and run out of memory
Thanks
The text was updated successfully, but these errors were encountered:
Ive got a model like this one
The thing is, if I do the
scope :search_import, -> { includes( :ordered_b) }
the has many relation is not being loaded, and search_data is empty. If I dont do it, reindexing takes longer because it needs to do the query for each object, but the resulting object has the correct data loaded to elastic.I dont know if its a bug or is just that doing that kind of scoped import is not supported. I cannot import the whole :b relationship because in some instances Ive got too many records and run out of memory
Thanks
The text was updated successfully, but these errors were encountered: