relstorage.adapters.postgresql.stats – Stats implementations

Stats implementations

class PostgreSQLStats(connmanager, keep_history)[source]

Bases: AbstractStats

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.