Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Refactor the way how flavor is chosen for appliance type #36

Open
mkasztelnik opened this issue Dec 8, 2014 · 1 comment
Open

Refactor the way how flavor is chosen for appliance type #36

mkasztelnik opened this issue Dec 8, 2014 · 1 comment
Assignees

Comments

@mkasztelnik
Copy link
Member

Ugly solution was used to hotfix problem with choosing selected flavor in clew rest api. As a conclusion we added additional database queries (see a672cd9) for details.

Please rethink and refactor choosing flavor mechanism (for sure it should be only in one place). Maybe it can be done using database query?

@mkasztelnik
Copy link
Member Author

If there is not possible to implement it as one DB query than maybe Rails cache can be used to store results of expensive flavor choosing operations? Take a look at http://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-fetch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants