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

[Performance] GET /api-chat/rooms #305

Open
ghkdqhrbals opened this issue Dec 14, 2023 · 1 comment
Open

[Performance] GET /api-chat/rooms #305

ghkdqhrbals opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
feature: performance performance improvement

Comments

@ghkdqhrbals
Copy link
Owner

ghkdqhrbals commented Dec 14, 2023

GET /api-chat/rooms

  • Implements
    • To solve JPA N+1 problems, EAGER fetching!
  • Resource consumption
    • chat-db : 0.23 cpu
    • chat-server : 0.69 cpu
  • Improvements
    • avg MTTFB : 406.65 -> ...
    • avg TPS : 247.6-> ...
Hibernate: select f1_0.friend_seq,f1_0.friend_id,f1_0.user_id from friend f1_0 where f1_0.user_id=?                                                                                                       
Hibernate: select u1_0.user_id,u1_0.user_name,u1_0.user_status from user_chat_table u1_0 where u1_0.user_id=?                                                                                             
Hibernate: select u1_0.user_id,u1_0.user_name,u1_0.user_status from user_chat_table u1_0 where u1_0.user_id=?                                                                                             
Hibernate: select u1_0.user_id,u1_0.user_name,u1_0.user_status from user_chat_table u1_0 where u1_0.user_id=?                                                                                             
Hibernate: select u1_0.user_id,u1_0.user_name,u1_0.user_status from user_chat_table u1_0 where u1_0.user_id=?                                                                                             
Hibernate: select u1_0.user_id,u1_0.user_name,u1_0.user_status from user_chat_table u1_0 where u1_0.user_id=?
// This select query coninue until all user were found //
image image
@ghkdqhrbals ghkdqhrbals added the theme: documentation Improvements or additions to documentation label Dec 14, 2023
@ghkdqhrbals ghkdqhrbals self-assigned this Dec 14, 2023
@ghkdqhrbals ghkdqhrbals added feature: performance performance improvement status: in-progress This issue is currently in progress and removed theme: documentation Improvements or additions to documentation labels Dec 14, 2023
@ghkdqhrbals
Copy link
Owner Author

image

@ghkdqhrbals ghkdqhrbals removed the status: in-progress This issue is currently in progress label Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: performance performance improvement
Projects
None yet
Development

No branches or pull requests

1 participant