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


Returns the approximate number of objects in the database


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