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

Implement the cache #1

Closed Haroenv closed 6 years ago

Haroenv commented 6 years ago

Right now every build would add as many objects as there are results, we should cache them using the Gatsby cache

Haroenv commented 6 years ago

Will probably be able to be implemented with atomic-algolia.

avigoldman commented 6 years ago

Should this use atomic-algolia or follow the atomic reindexing pattern of pushing into a temporary index and moving to the target index?

Haroenv commented 6 years ago

@avigoldman, either is good. I think I’d want to push the hashes of the objects in a separate index and compare though, but I haven’t found the time for this.

avigoldman commented 6 years ago

I'll open a PR doing an atomic reindex to keep it relatively straightforward to start.

Haroenv commented 6 years ago

Cool, very appreciated