Replies: 1 comment
-
|
Hello, Just to do a quick follow up, after further testing, our diagnostic was not a bit mislead by our configuration: The slowness did come from the SQL queries, but it was not the optimization or the number of them that was in cause, the database pooling system was. Anyway, if I have some time in the next weeks, I'll do a cleanup on some reworked queries and open a pull request, so you could use them if you find them OK. I also close the discussion, as our problems are now fixed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Hi,
First off, thank you for the amazing work on Vaultwarden! We’ve been running it successfully for our organization, but as our usage has grown, we’ve noticed performance bottlenecks when managing users, likely due to increased data volume and query inefficiencies.
Performance Issues
We are experiencing significant slowdowns when listing users:
Root Causes
From our analysis, the slowdowns seem to originate from:
/admin/users/overviewendpoint.to_jsonfunction, especially when fetching organization-related data.Optimization Efforts
I started optimizing queries for the
/admin/usersand/admin/users/overviewendpoints and I'm also exploring improvements to theUser.to_jsonfunction.We are eager to contribute to Vaultwarden to help other users address these performance issues and ensure the project can scale for larger adoption. However, we are facing challenges, as the optimization of the
User.to_jsonfunction will certainly need a big re-factorization, so we would greatly appreciate your guidance before we proceed with a pull request.Thanks again for your time and effort on Vaultwarden!
Best regards
Beta Was this translation helpful? Give feedback.
All reactions