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
/// A request to fetch an item at the given `path` from an object store
///
/// Contains a notifier to notify the caller that registers the cache request when the item
/// has been cached successfully (or if the cache request failed in some way)
#[derive(Debug)]
pubstructCacheRequest{
path:Path,
notifier: oneshot::Sender<()>,
}
This fetch-based method of populating the cache is still needed, but seems like an inefficient option where it is used from the write buffer.
Currently, during the snapshot process, once a parquet file is persisted, we submit a cache request, which will fetch the parquet data that was just written to object store. We should be able to cache the written bytes directly, vs. having to do this additional request to the object store.
Proposed solution
Expand the CacheRequest type into an enum with variants to support:
Fetch-based cache request (what it does currently)
Write-through cache request
The latter will accept bytes, somehow, and write them into the cache for a given object store path.
The text was updated successfully, but these errors were encountered:
Problem statement
The parquet cache currently only has one way to populate, which is via a
GET
request to the object store. See:influxdb/influxdb3_cache/src/parquet_cache/mod.rs
Lines 43 to 51 in d1fd155
This fetch-based method of populating the cache is still needed, but seems like an inefficient option where it is used from the write buffer.
Currently, during the snapshot process, once a parquet file is persisted, we submit a cache request, which will fetch the parquet data that was just written to object store. We should be able to cache the written bytes directly, vs. having to do this additional request to the object store.
Proposed solution
Expand the
CacheRequest
type into an enum with variants to support:The latter will accept bytes, somehow, and write them into the cache for a given object store path.
The text was updated successfully, but these errors were encountered: