pub enum PrefetchMode {
All,
None,
}Expand description
Controls how the VFS prefetches blob data on open.
Passed to UriBuilder::prefetch and emitted as the prefetch URI
parameter.
§Example
use sqlite_objs::{UriBuilder, PrefetchMode};
let uri = UriBuilder::new("mydb.db", "acct", "cont")
.sas_token("tok")
.prefetch(PrefetchMode::None)
.build();
assert!(uri.contains("prefetch=none"));Variants§
All
Download the entire blob into the local cache when the database is opened. This is the default behaviour and gives the best read performance for workloads that touch most pages.
None
Lazy mode — only fetch individual pages from Azure on demand. Useful for large databases where you read a small subset of pages.
Trait Implementations§
Source§impl Clone for PrefetchMode
impl Clone for PrefetchMode
Source§fn clone(&self) -> PrefetchMode
fn clone(&self) -> PrefetchMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrefetchMode
impl Debug for PrefetchMode
Source§impl Default for PrefetchMode
impl Default for PrefetchMode
Source§fn default() -> PrefetchMode
fn default() -> PrefetchMode
Returns the “default value” for a type. Read more
Source§impl Hash for PrefetchMode
impl Hash for PrefetchMode
Source§impl PartialEq for PrefetchMode
impl PartialEq for PrefetchMode
impl Copy for PrefetchMode
impl Eq for PrefetchMode
impl StructuralPartialEq for PrefetchMode
Auto Trait Implementations§
impl Freeze for PrefetchMode
impl RefUnwindSafe for PrefetchMode
impl Send for PrefetchMode
impl Sync for PrefetchMode
impl Unpin for PrefetchMode
impl UnsafeUnpin for PrefetchMode
impl UnwindSafe for PrefetchMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more