AgileVentures / AgileVentures/projectscope

avoid caching in gems, promote caching in db via metric_sample

Đang mở
#45 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Ruby
Star
2
Fork
14
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 ...

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.