Skip to content

BE006 optimise recommendation engine performance#25

Open
Diya223287452 wants to merge 2 commits intomainfrom
feature/be006-performance-clean
Open

BE006 optimise recommendation engine performance#25
Diya223287452 wants to merge 2 commits intomainfrom
feature/be006-performance-clean

Conversation

@Diya223287452
Copy link
Copy Markdown
Collaborator

@Diya223287452 Diya223287452 commented Mar 30, 2026

Ticket

  • BE006 – Optimise Recommendation Engine Performance

Description

This PR improves the performance of the recommendation engine by reducing repeated processing and making the pipeline more efficient.

Changes made:

  • Added caching to avoid repeating the same computation
  • Added a limit to the cache to prevent memory issues
  • Simplified cache key for better performance
  • Moved repeated diet constants to a single place for cleaner code

Validation

  • First run processes normally (servedFromCache: false)
  • Second run uses cache (servedFromCache: true)

Checks

  • All requirements of the ticket have been implemented
  • Unit tests added (if applicable)
  • Files Changed tab reviewed
  • PR reviewed and approved

Screenshots

  • First run showing no cache (servedFromCache: false)
  • Second run showing cache usage (servedFromCache: true)
  • Git commit showing BE006 changes

screenshots:
image
image

image image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant