Open vijayakumarsuraj opened 2 years ago
Thanks a lot. For a proper implementation of the cache we need to call sp_unprepare <handle>
somewhere, ideally when the cache entry is being removed. Calling unprepare can interfere with the ongoing query so that might require some special attention.
For now, can we provide only NoPreparedStatementCache to allow disabling cache ? If it is ok i can create new PR.
Make sure that:
[x] You submit test cases (unit or integration tests) that back your changes.
Issue description
https://github.com/r2dbc/r2dbc-mssql/issues/227 - Allow configuring the prepared statement cache
New Public APIs
public
.preparedStatementCache
.Additional context
The
preparedStatementCache
discovery option behaves similar to the one in r2dbc-postgresql.PreparedStatementCache
implementation.