relstorage.adapters.stats – Stats implementations#

Stats implementations

class AbstractStats(connmanager, keep_history)[source]#

Bases: DatabaseHelpersMixin, ABC

abstract get_db_size()[source]#

Returns the approximate size of the database in bytes

get_object_count()[source]#

Returns the approximate number of objects in the database

large_database_change()[source]#

Call this when the database has changed substantially, and it would be a good time to perform any updates or optimizations.