algolia / gatsby-plugin-algolia

A plugin to push to Algolia based on graphQl queries
https://yarn.pm/gatsby-plugin-algolia
Apache License 2.0
177 stars 45 forks source link

fix(multiIndex): separate cache per index #173

Closed Haroenv closed 1 year ago

Haroenv commented 1 year ago

While usually objectID would be globally unique, its only requirement is for it to be unique per index. Therefore we must separate the object cache per index for correct behaviour.

fixes #171

Haroenv commented 1 year ago

@yathomasi, if you make the patch manually in your project, does this prevent collisions as you expected?

yathomasi commented 1 year ago

does this prevent collisions as you expected?

It should, I had an updated index and then changed it to a new index but the log mentioned there were no changes and skipped sending data to the new index.