duckdb-rs icon indicating copy to clipboard operation
duckdb-rs copied to clipboard

Why remove the prepared statements from cache?

Open domoritz opened this issue 11 months ago • 1 comments

Maybe I am misunderstanding the logic here but I wonder why duckdb removes the statement from the cache instead of just getting it? I would expect a call to https://paritytech.github.io/try-runtime-cli/hashlink/lru_cache/struct.LruCache.html#method.get.

https://github.com/duckdb/duckdb-rs/blame/2bd811e7b1b7398c4f461de4de263e629572dc90/crates/duckdb/src/cache.rs#L142

domoritz avatar Nov 06 '24 20:11 domoritz