Skip to content

enhance(backend): EntityServiceなどでDB照会の結果を短時間キャッシュするように#477

Draft
u1-liquid wants to merge 1 commit intoMisskeyIO:mainfrom
u1-liquid:cache-database-entityservice
Draft

enhance(backend): EntityServiceなどでDB照会の結果を短時間キャッシュするように#477
u1-liquid wants to merge 1 commit intoMisskeyIO:mainfrom
u1-liquid:cache-database-entityservice

Conversation

@u1-liquid
Copy link
Member

@u1-liquid u1-liquid commented Feb 25, 2024

What

resolve #472

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@u1-liquid u1-liquid force-pushed the cache-database-entityservice branch 3 times, most recently from b9b78be to c1ce9af Compare February 25, 2024 20:48
@u1-liquid u1-liquid force-pushed the cache-database-entityservice branch from c1ce9af to 8b1f30a Compare March 4, 2024 23:14
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
9.9% Duplication on New Code

See analysis details on SonarCloud

@u1-liquid
Copy link
Member Author

他の作業が優先になるのでメモ
一旦今の実装は没にして
なんでも目当てのentityをfetchできるLRU付きのcontextクラスを作ってそいつをentityserviceの間に共有する形にする
optionalにして、undefinedなら初めて呼び出されたentityserviceが勝手にcontextを作ってそれから呼び出す他のentityserviceに共有する感じ
ただしcontext自体はずっと残したりはしないのでTTLとかキャッシュのpurge処理などはいらない
packManyのことも考慮するとこれが一番手っ取り早いかも

@u1-liquid u1-liquid deleted the branch MisskeyIO:main May 12, 2025 13:38
@u1-liquid u1-liquid closed this May 12, 2025
@u1-liquid u1-liquid reopened this May 12, 2025
@snyk-io
Copy link

snyk-io bot commented May 12, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

@sonarqubecloud
Copy link

@u1-liquid u1-liquid changed the base branch from io_temp to main May 12, 2025 14:08
@u1-liquid u1-liquid marked this pull request as draft May 13, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EntityServiceのクエリーの数を減らす

1 participant