dboo::odb::db_stats
std::unique_ptr<__OSL_NS__::db_stats> db_stats();
db_stats() : Object
Returns the statistics about the server.
Parameters
(none)
Return value
An object with statistics of the connected database:
Field
Explanation
total_object_count
Total number of objects in database
total_object_cache_count
Number of objects in cache
total_object_cache_size
Number of bytes of objects in cache
total_object_size_on_disk
Total size of database data file(s)
total_index_size_on_disk
total_type_index_size_on_disk
Total size of all type indices
total_field_index_size_on_disk
Total size of all field indices
transaction_number
The transaction number for the next write operation
last_write
Date time for last write operation on database
last_read
Date time for last read operation on database
created
When the database was created
Example