You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been looking at improving the performance of our application. Our application is mostly read-heavy and has few use cases of mutations/updates/data invalidation. So store subscriptions are not really useful to us.
By turning off subscriptions in a patch I measured significant wins w.r.t responsiveness of our application. Would it be useful to have an option in the useQuery and useFragment hooks to turn off subscriptions?
Hi @Lalitha-Iyer,
the request is very particular, because without the subscription an important relay feature is lost and risks showing inconsistent data within the application.
You say that you have few cases of mutations/updates and data invalidation, and in those few cases how do you manage the update of the various components?
Furthermore, subscription is also used when executing queries, for example one query takes the value of a field x = 10, and a second query asks for the same field and the server replies x = 11.
this, through subscriptions, updates all the components that use x
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
I have been looking at improving the performance of our application. Our application is mostly read-heavy and has few use cases of mutations/updates/data invalidation. So store subscriptions are not really useful to us.
By turning off subscriptions in a patch I measured significant wins w.r.t responsiveness of our application. Would it be useful to have an option in the
useQuery
anduseFragment
hooks to turn off subscriptions?Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: