pub struct OptimizationReport {
pub index_hints: Vec<IndexHint>,
pub projection_hints: Vec<ProjectionHint>,
pub optimization_notes: Vec<String>,
}Expand description
Optimization report generated during compilation
Fields§
§index_hints: Vec<IndexHint>Index suggestions for query performance
projection_hints: Vec<ProjectionHint>SQL projection hints for types that would benefit from JSONB field filtering
optimization_notes: Vec<String>General optimization notes
Implementations§
Source§impl OptimizationReport
impl OptimizationReport
Sourcepub fn total_hints(&self) -> usize
pub fn total_hints(&self) -> usize
Get total number of optimization hints
Sourcepub fn has_suggestions(&self) -> bool
pub fn has_suggestions(&self) -> bool
Check if there are any optimization suggestions
Trait Implementations§
Source§impl Debug for OptimizationReport
impl Debug for OptimizationReport
Source§impl Default for OptimizationReport
impl Default for OptimizationReport
Source§fn default() -> OptimizationReport
fn default() -> OptimizationReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptimizationReport
impl RefUnwindSafe for OptimizationReport
impl Send for OptimizationReport
impl Sync for OptimizationReport
impl Unpin for OptimizationReport
impl UnwindSafe for OptimizationReport
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