ReplicaCache was creating a new QueryFollower every time it was queried, even for the same query.
It was also referencing the follower before it had been declared.
What solution are you recommending?
If a cached result is found, the existing query follower in the cache entry is used.
What's the problem you solved?
ReplicaCache was creating a new QueryFollower every time it was queried, even for the same query. It was also referencing the follower before it had been declared.
What solution are you recommending?
If a cached result is found, the existing query follower in the cache entry is used.