DEV Community

Discussion on: Build a chat app with GraphQL Subscriptions & TypeScript: Part 3

Collapse
 
awayoflife profile image
Kingshuk Saha • Edited

Hi I have one question related to the performance aspect of Query+SubcribeToMore. As per Network tab in Chrome dev tools each time a new message is added, the entire messages array is being fetched from the server. Is there any way to optimize this?

If you see the screenshot, the data transferred over the network is increasing with every new message.
dev-to-uploads.s3.amazonaws.com/up...