Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
u1-liquid opened this issue Feb 23, 2024 · 1 comment · May be fixed by #477
Open

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

u1-liquid opened this issue Feb 23, 2024 · 1 comment · May be fixed by #477

Comments

@u1-liquid
Copy link
Member

  • 少なくてもpackManyの場合はdbから一度で全部fetchさせてpackの途中にクエリーが発生しないようにしたい
  • EntityServiceごとにLRUキャッシュを設ける
@u1-liquid
Copy link
Member Author

idリストだけでpackManyを叩くと一つのエンティティを取りに行くクエリーがめっちゃ発行されるのとタイムラインとかで同じエンティティを何度も取りに行くのが問題なのでcontext概念をentityserviceに入れて同じリクエスト内で共有してもらえばよさそう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant