sixnines
sixnines copied to clipboard
caching
We make too many DynamoDB requests. Let's introduce a simple in-memory caching layer for most intensive requests.
Let's try this one: https://github.com/SamSaffron/lru_redux
@0crat in
I'm not managing yegor256/sixnines
GitHub repository. You have to contact me in Slack first. Our policy explains how.
@0crat in
+15 points just awarded to @yegor256, total is +1515.
@0crat assign @pdacostaporto
@0crat assign @pdacostaporto (here)
@yegor256 Job gh:yegor256/sixnines#14
assigned to @pdacostaporto, please go ahead (policy).
@yegor256 which would be the most intensive querys? I suppose they are those in Base.flips
and Base.ping
. Am I right? Are there any others?
@yegor256 another question: would you like the cache to be cleared after a TTL or on database updates?
@pdacostaporto I think that the most important for us are these:
- https://github.com/yegor256/sixnines/blob/0.19.2/objects/base.rb#L42-L52
- https://github.com/yegor256/sixnines/blob/0.19.2/objects/base.rb#L76-L85
- https://github.com/yegor256/sixnines/blob/0.19.2/objects/base.rb#L91-L101
- https://github.com/yegor256/sixnines/blob/0.19.2/objects/endpoint.rb#L88-L102
Would be great to flush them on relevant database updates.
@pdacostaporto this job was assigned to you 8 days ago. It will be taken away from you after 10 days from start (this is our policy).
@pdacostaporto resigned from gh:yegor256/sixnines#14
, please stop working.
Oops! Job gh:yegor256/sixnines#14
is not assigned to anyone.
Oops! Job gh:yegor256/sixnines#14
is not assigned to anyone.
Oops! Job gh:yegor256/sixnines#14
is not assigned to anyone.
Oops! Job gh:yegor256/sixnines#14
is not assigned to anyone.
Job gh:yegor256/sixnines#14
assigned to @pdacostaporto, please go ahead (policy).
@pdacostaporto resigned from gh:yegor256/sixnines#14
, please stop working.
Job gh:yegor256/sixnines#14
assigned to @pdacostaporto. The budget is fixed and it is 30 minutes. Please, read the Policy and go ahead.
@pdacostaporto resigned from gh:yegor256/sixnines#14
, please stop working.