You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix](file cache) Fix slow IO for table stats procedure, introduced by apache#37141 (apache#39123)
Session variable `disable_file_cache` is processed as "disposable file
cache" in beta_rowset_reader.cpp.
```
if (_read_context->runtime_state != nullptr) {
_read_options.io_ctx.query_id = &_read_context->runtime_state->query_id();
_read_options.io_ctx.read_file_cache =
_read_context->runtime_state->query_options().enable_file_cache;
_read_options.io_ctx.is_disposable =
_read_context->runtime_state->query_options().disable_file_cache;
}
```
We use disposable cache to avoid IO amp and avoid large amount of
eviction from the cached data ("normal cache").
We cannot set the read option cache policy to "no cache" because it may
cause IO amp: every page IO will cause a remote IO, which is a
performance disaster.
0 commit comments