Skip to content
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

Can you manually exclude statement caching? #182

Closed
xpiwo opened this issue Sep 2, 2015 · 6 comments
Closed

Can you manually exclude statement caching? #182

xpiwo opened this issue Sep 2, 2015 · 6 comments

Comments

@xpiwo
Copy link

xpiwo commented Sep 2, 2015

It it possible to explicitly exclude some statement from the cache? setDisableStatementCaching?

Thanks.

@krismohan
Copy link

Any reason why you need that? LRU ones are thrown off the cache if the cache is full.

@xpiwo
Copy link
Author

xpiwo commented Sep 2, 2015

i don't want to cache 'on the fly' dynamic statements and to push out cached statements.
eg list of different optional filters etc

@cjbj
Copy link
Member

cjbj commented Sep 2, 2015

@xpiwo any chance you can use bind variables for this kind of statement? How's the statement caching working out for you in general?

@krismohan do you want to add a doNotCache option to execute() that indicates OCIStmtRelease should use OCI_STRLS_CACHE_DELETE?

@xpiwo
Copy link
Author

xpiwo commented Sep 2, 2015

It might be possible to use bind variables and pass a bunch of nulls/empty strings, but that's ugly.

The do not cache flag is the feature request i was aiming for :)

Thanks.

@krismohan
Copy link

It is feasible. OCI supports it as Chris mentioned.

@cjbj
Copy link
Member

cjbj commented Oct 22, 2021

A new keepInStmtCache attribute in now available in node-oracledb 5.3 to handle this situation. Thanks for your patience!

@cjbj cjbj closed this as completed Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants