pub struct PerformanceExecutor { /* private fields */ }Expand description
High-performance executor
Implementations§
Source§impl PerformanceExecutor
impl PerformanceExecutor
Sourcepub async fn new(pool: &PgPool, config: PerformanceConfig) -> Self
pub async fn new(pool: &PgPool, config: PerformanceConfig) -> Self
Create a new performance executor
Sourcepub fn query_cache(&self) -> Option<&Arc<QueryCache>>
pub fn query_cache(&self) -> Option<&Arc<QueryCache>>
Get the query cache
Sourcepub fn entity_cache(&self) -> Option<&Arc<EntityCache>>
pub fn entity_cache(&self) -> Option<&Arc<EntityCache>>
Get the entity cache
Sourcepub fn parallel_executor(&self) -> Option<&Arc<ParallelExecutor>>
pub fn parallel_executor(&self) -> Option<&Arc<ParallelExecutor>>
Get the parallel executor
Sourcepub fn clear_caches(&self)
pub fn clear_caches(&self)
Clear all caches
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Auto Trait Implementations§
impl Freeze for PerformanceExecutor
impl !RefUnwindSafe for PerformanceExecutor
impl Send for PerformanceExecutor
impl Sync for PerformanceExecutor
impl Unpin for PerformanceExecutor
impl UnsafeUnpin for PerformanceExecutor
impl !UnwindSafe for PerformanceExecutor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more