Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::SqlPreparedStatementCache::Statistics Struct Reference

Cumulative counters, primarily for tests and diagnostics. More...

#include <SqlPreparedStatementCache.hpp>

Public Attributes

uint64_t hits {}
 Prepare requests served from the pool, i.e. reusing a handle the server already prepared.
 
uint64_t misses {}
 Prepare requests that had to issue SQLPrepare.
 
uint64_t evictions {}
 Pooled handles freed because the capacity bound was exceeded.
 
uint64_t directReuses {}
 

Detailed Description

Cumulative counters, primarily for tests and diagnostics.

Definition at line 73 of file SqlPreparedStatementCache.hpp.

Member Data Documentation

◆ hits

uint64_t Lightweight::SqlPreparedStatementCache::Statistics::hits {}

Prepare requests served from the pool, i.e. reusing a handle the server already prepared.

Definition at line 76 of file SqlPreparedStatementCache.hpp.

◆ misses

uint64_t Lightweight::SqlPreparedStatementCache::Statistics::misses {}

Prepare requests that had to issue SQLPrepare.

Definition at line 79 of file SqlPreparedStatementCache.hpp.

◆ evictions

uint64_t Lightweight::SqlPreparedStatementCache::Statistics::evictions {}

Pooled handles freed because the capacity bound was exceeded.

Definition at line 82 of file SqlPreparedStatementCache.hpp.

◆ directReuses

uint64_t Lightweight::SqlPreparedStatementCache::Statistics::directReuses {}

Prepare requests a statement served from the handle it was already holding, i.e. a repeat of the query text it last prepared. Like a hit these cost no SQLPrepare, but they never touch the pool: parking the handle only to look that same text back up would be pure overhead.

Definition at line 87 of file SqlPreparedStatementCache.hpp.

Referenced by Lightweight::SqlPreparedStatementCache::RecordDirectReuse().


The documentation for this struct was generated from the following file: