mediachain / mediachain-indexer

search, dedupe, and media ingestion for mediachain
33 stars 14 forks source link

Caching #22

Closed autoencoder closed 8 years ago

autoencoder commented 8 years ago

Discussion on query-caching plans:

Note: Caching of query sessions is valuable for pagination & useful URLs on search results, good idea for us to use Redis for that.

Query caching turns out to be... quite unique. Depending on the implementation, possibly even degrading performance. Different from typical web app caching, or even typical database caching. Considerations:

So adding top-level query caching is still useful, but unlike for regular web apps where top-level caching alone is practically all you need, here it only covers a small fraction of what's needed. Most of the caching will occur at deeper levels of the search stack.

Most of the Indexing components have built-in caching mechanisms for this, and other reasons. Investigating those and enabling some of them as we go.

parkan commented 8 years ago

Presumably top-level caching is still important for soaking up load/spikes at popular queries. Down to discuss domain specific caching strategies.

autoencoder commented 8 years ago

Closing in favor of new storage system & ANN index design.