sixnines icon indicating copy to clipboard operation
sixnines copied to clipboard

caching

Open yegor256 opened this issue 7 years ago • 22 comments

We make too many DynamoDB requests. Let's introduce a simple in-memory caching layer for most intensive requests.

yegor256 avatar Mar 27 '17 15:03 yegor256

Let's try this one: https://github.com/SamSaffron/lru_redux

yegor256 avatar Apr 02 '17 10:04 yegor256

@0crat in

yegor256 avatar Aug 11 '17 08:08 yegor256

I'm not managing yegor256/sixnines GitHub repository. You have to contact me in Slack first. Our policy explains how.

0crat avatar Aug 11 '17 08:08 0crat

@0crat in

yegor256 avatar Aug 11 '17 12:08 yegor256

@0crat in (here)

@yegor256 Job gh:yegor256/sixnines#14 is in scope.

0crat avatar Aug 11 '17 12:08 0crat

+15 points just awarded to @yegor256, total is +1515.

0crat avatar Aug 11 '17 12:08 0crat

@0crat assign @pdacostaporto

yegor256 avatar Aug 11 '17 12:08 yegor256

@0crat assign @pdacostaporto (here)

@yegor256 Job gh:yegor256/sixnines#14 assigned to @pdacostaporto, please go ahead (policy).

0crat avatar Aug 11 '17 12:08 0crat

@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?

pdacostaporto avatar Aug 20 '17 04:08 pdacostaporto

@yegor256 another question: would you like the cache to be cleared after a TTL or on database updates?

pdacostaporto avatar Aug 20 '17 05:08 pdacostaporto

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

yegor256 avatar Aug 20 '17 16:08 yegor256

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

0crat avatar Nov 14 '17 15:11 0crat

@pdacostaporto resigned from gh:yegor256/sixnines#14, please stop working.

0crat avatar Nov 14 '17 15:11 0crat

Oops! Job gh:yegor256/sixnines#14 is not assigned to anyone.

0crat avatar Nov 14 '17 15:11 0crat

Oops! Job gh:yegor256/sixnines#14 is not assigned to anyone.

0crat avatar Nov 14 '17 15:11 0crat

Oops! Job gh:yegor256/sixnines#14 is not assigned to anyone.

0crat avatar Nov 14 '17 15:11 0crat

Oops! Job gh:yegor256/sixnines#14 is not assigned to anyone.

0crat avatar Nov 14 '17 15:11 0crat

Job gh:yegor256/sixnines#14 assigned to @pdacostaporto, please go ahead (policy).

0crat avatar Nov 17 '17 00:11 0crat

@pdacostaporto resigned from gh:yegor256/sixnines#14, please stop working.

0crat avatar Nov 27 '17 00:11 0crat

Job gh:yegor256/sixnines#14 assigned to @pdacostaporto. The budget is fixed and it is 30 minutes. Please, read the Policy and go ahead.

0crat avatar Dec 17 '17 17:12 0crat

@pdacostaporto resigned from gh:yegor256/sixnines#14, please stop working.

0crat avatar Dec 27 '17 10:12 0crat

@null/z everybody who has role DEV are banned at this job; I won't be able to assign anyone automatically; consider assigning someone manually or invite more people to the project, as explained in §51

0crat avatar Apr 12 '18 01:04 0crat