-
Notifications
You must be signed in to change notification settings - Fork 650
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
/api/v3/me endpoint is painfully slow #13953
Comments
cc @CartoDB/rt-managers |
Did a quick benchmark and this is largely due to |
@rubenmoya for awareness |
This is not a big problem for normal accounts, but big ones are painful. Team takes ~1 minute now. cc @CartoDB/rt-managers |
We are in the process of changing that profile dropdown, as it is already implemented at carto.com This new profile dropdown doesn't include the db size information. I don't know if we have any plan to implement this on the account side, but it would be a good first step to alleviate that endpoint now it's being used actively. |
This problem seems to come and go depending on DB load. Some days it's better than others. The dropdown inside dashboard does include this information though. Unless we are removing that, we still need this. Things to investigate:
I'd start with the first one before considering caching. |
The main problem seems to be the function
Many of those seem to come from syncs. Here's a ticket with a relevant discussion about DDL and locks that may affect |
My point is that. As said, we have already changed that dropdown outside dashboard. It makes sense to make it coherent and consistent by having just one profile dropdown. The design team has involved into the new profile dropdown, probably @piensaenpixel can help us with this. In my opinion, the perfect solution, small change with a huge impact, would be to change that dropdown. Of course, we can investigate why the function is so slow from time to time, or add cache, but both mean, as you say, efforts and in the case of the cache probably further problems. |
It's not only that dropdown though. We currently also check that quota in order to enable/disable the import button and on the profile/organization pages, which are also UI (interactive). We also use it in imports/syncs but that is lees of an issue since it's a background job. |
Furthermore: we also check the quota for the COPY endpoint. That's a good reason to try to fix the issue at exension/db level. |
Yes, I understand that part: we give that calculation in different places. My argument is that one of those places, the profile dropdown, is actually being changed. And the way it's being changed makes sense as it now displays just links to the main sections of the account instead of providing "real time" information of any aspect of the service. So, regardless of the problem we're facing now the profile dropdown should be updated on the account side as well removing that db size information. That would alleviate the problem a lot since the dashboard is a more common entry point than for instance the account page. |
Just doing that won't alleviate the problem without more changes. We cannot remove it from that endpoint since itr's used in other parts of the frontend, and that endpoint must contain anything that is needed for frontend (since it's the only way front statics know how to get information from backend). So, even if it's used only in profile pages, we still need it in that endpoint. Also, in the dashboard, there is also (at least) the enable/disabled import button, so that dropdown is not the only place. We would have to remove or change all usages of that from the frontend before we can remove it from that endpoint. My point is that it's probably not such a quick fix as it looks like. |
Addressing this as part of a broader review of dashboard performance. #14615 |
Context
When entering
carto.com
, loading the Dashboard information is really slow. With my team account, theapi/v3/me
endpoint takes ~1.5 seconds to load.Additional info
Checking the load times in Kibana you can see load times of up to 5 seconds and you can see that team accounts take more or less the same time, so the load time might grow with the team size (unchecked supposition).
@ramiroaznar Can you check if this can be added to RT, please?
The text was updated successfully, but these errors were encountered: