CollectionStats
public struct CollectionStats : Sendable
A snapshot of collection statistics returned by NyaruCollection.stats().
-
The collection name.
Declaration
Swift
public let name: String -
The number of live (non-tombstoned) documents.
Declaration
Swift
public let documentCount: Int -
The number of shard files on disk.
Declaration
Swift
public let shardCount: Int -
The total on-disk size of all shard files, in bytes.
Declaration
Swift
public let sizeInBytes: UInt64 -
Index statistics mapping field name to entry count.
Declaration
Swift
public let indexes: [String : Int] -
The ratio of dead (tombstoned) bytes to total file size.
Declaration
Swift
public let fragmentationRatio: Double
View on GitHub