DatabaseEfficiency class

Represents database efficiency metrics for analyzing LMDB performance.

This class provides structured access to various database metrics and helper methods to evaluate database health.

Constructors

DatabaseEfficiency.new({required int totalEntries, required int treeDepth, required double branchToLeafRatio, required double averageEntriesPerLeafPage, required bool hasOverflow})
Creates a new DatabaseEfficiency instance

Properties

averageEntriesPerLeafPage double
Average number of entries stored per leaf page
final
branchToLeafRatio double
Ratio of branch pages to leaf pages
final
hashCode int
The hash code for this object.
no setterinherited
hasOverflow bool
Indicates if the database has overflow pages
final
isEfficient bool
Returns true if the database storage is efficiently utilized.
no setter
isWellBalanced bool
Returns true if the B+ tree structure is well-balanced.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalEntries int
Total number of entries in the database
final
treeDepth int
Depth of the B+ tree
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited