openculinary / knowledge-graph

The RecipeRadar knowledge graph stores and provides access to recipe and ingredient relationship information.
GNU Affero General Public License v3.0
10 stars 0 forks source link

[performance] Add caching for index-related operations #54

Closed jayaddison closed 3 years ago

jayaddison commented 3 years ago

Describe the reason for these changes and the problem that they solve

As an experiment to improve response times and reduce workload for the service, add caching to methods that should be stable and return the same results over time.

Briefly summarize the changes

  1. Add caching for stemming-related operations
  2. Separate product metadata into static and dynamic elements; cache the static elements

How have the changes been tested?

  1. Local development testing