I have an index of Items. Every Item belongs to another model Owner. When I search through Items index I need to have also some properties of the Owner of the Item.
My solution (HIGH IndexOPS):
I can nest these pieces of information in every Item but this creates a problem when changing an attribute of the Owner. Changing an attribute of owner means to change the same attribute on every Item related to it creating a lot of Index operations. If an Owner has 20k Items–> 20k OPS.
This could be achieved by only one OPS on Owner record. There is any solution to this?
I’ve read https://www.algolia.com/doc/guides/indexing/structuring-your-data/#indexing-relations but this only helps in searching on nested items.