13 ms·
What if I’m requesting a user’s profile information and a list of posts on their profile, and the list of posts takes 10x longer to fetch? Is it faster from a c
by iEchoic 8y ago
What if I’m requesting a user’s profile information and a list of posts on their profile, and the list of posts takes 10x longer to fetch? Is it faster from a client perspective if I can’t render the user’s profile page until I wait until all of the posts are fetched, too?
In the general case, I’ve found that GraphQL is slower even in the case where you’re fetching all of a page’s info at once. Not only is it not necessarily always true that one client-server round trip is faster all-up than more granular requests even when you discount the user experience, this pattern often isn’t good general-case behavior for the reason above.