CachingSession
does not allow using SKIP_METADATA
#1178
Labels
Milestone
CachingSession
does not allow using SKIP_METADATA
#1178
Problem statement
As
CachingSession
manages preparation internally, it does not expose itsPreparedStatement
s in any way. Therefore, it's not possible for a user ofCachingSession
to callPreparedStatement::set_use_cached_result_metadata
in order to take advantage of that optimisation.There are use cases when not having possibility to turn the optimisation on may result in significant inefficiency. As an example, the experimental NodeJS-over-Rust driver's API suits
CachingSession
's API best, but lack of the mentioned optimisation makes the experimental driver fall short compared to the original NodeJS driver (which, most likely, has the optimisation turned on).Possible solution
Expose a way to set up
CachingSession
so that it turns the optimisation on for allPreparedStatement
s it manages.Of course, write a big
BEWARE
disclaimer mentioning what are the possible pitfalls when using the optimisation (SELECT *
, etc.).The text was updated successfully, but these errors were encountered: