-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Results get cached even if noCaching is true #467
Comments
Hi @seanhurwitz Which version of node.js client are you using? |
@ml054 6.0.0 I believe the issue is (RequestExecutor.ts): this._cache is always defined and the method checks if(cache) cacheResponse(...) so I suggest: |
I also set maxHttpCacheSize to 0 but that doesn't help. At least this will on a per session basis. But maybe if the size is 0, it shouldn't initialise the cache at all |
node version 20.16.0 |
Please compare those two examples. First uses noCaching as session option, second noCache on query. Can you confirm using noCaching on session.query doesn't cause memory leaks? I will investiage futher why there is such disprancy and get back to you. I have hope that temporary workaround can unblock your development/deployments for time being. |
@ml054 I can confirm it works! Thanks. Please see to the issue though, it's tediuous to say noCaching every time |
I do agree. Will open a ticket for RavenDB to fix it. Sorry for inconvenience. |
thanks. Just to clarify Store level caching: (ie maxHttpCache = 0) DOESN'T WORK Session level Caching (ie .openSession({noCaching:true}) DOESN'T WORK Query level Caching (.noCaching()) DOES WORK Seems the issue was only raised for Sesison Level Caching, can we not also fix it for Store level caching? |
Sure, reported separate ticket for node.js: https://issues.hibernatingrhinos.com/issue/RDBC-881/Node.js-client-cache-issues Thanks |
I have set noCaching to true on each session, but this still gets cached. This is giving us a massive memory leak.
Please help!
The text was updated successfully, but these errors were encountered: