-
Notifications
You must be signed in to change notification settings - Fork 415
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
Duplicate CL positions query #3168
Comments
Oh I see. These are in the tRPC procedures running locally in browser. Yes, the latter queries (used in Yes. This could be cleaned up, perhaps by passing the per-position data needed by The performance of these queries is highly dependent on the locality of the underlying services used in the query relative to the edge function or user (which could be considered the same, theoretically since edge functions are supposed to be close to user). Often we send requests concurrently, making the slowest query the performance bottleneck. But other times, the very slow procedures need to send queries serially because of interdependence of the queries. In that case things can be very slow like with This is a con of our migration to tRPC. It greatly simplifies client code by bundling multiple async opts into one, but then the above pitfalls are revealed. Before, every async op (query) would update the view incrementally as the dependent data was loading. Notice in old assets page, the numbers at the top of the page gradually increase as the various queries for your assets are responding. So our old arch "felt" faster since the fast queries would update the view immediately, but the client was more complex and we sometimes had weird race condition bugs or debounce/thrashing issues with the view getting re-rendered so often. Thoughts? |
Currently we do two queries for CL positions, and I'm confused why we do two sets.
First we do:
The latter set of queries don't need to happen imo. I can't tell if the second set of queries is what is populating the cards, I think so but could very well be wrong due to my imprecise checking method.
The text was updated successfully, but these errors were encountered: