AgileVentures / AgileVentures/projectscope

avoid caching in gems, promote caching in db via metric_sample

Offen
#45 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Ruby
Sterne
2
Forks
14
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I think that where possible the gems should avoid memo-izing or caching any data. Taking a leaf from the functional programming approach, I think the gems will be simpler and easier to maintain if they don't do any state management, which can be handled by the AR support in the main rails projectscope system. I think a call to raw_data or image on the gem should always generate the representation from scratch. Conversely it's calls to the MetricSample model in the rails app that will always pull the database stored data for efficiency - at least that's how we've got the Rails app working at present ...

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.