n1ru4l/graphql-live-query

Leak?

mikecann opened this issue · 1 comments

Hey,

Im just wondering is there any way to set a TTL or some other functions to "clear old records" from the store? Im worried that having the store grow in definately will cause out of memory issues for us.

strblr commented

Hello,

From reading the code quite a bit, I think old records are cleared either on an operation basis when the client sends some tear-down message with the operation id, or on a socket basis when it disconnects. Not sure what I'm missing here.