pyiron_base.database.performance module

class pyiron_base.database.performance.DatabaseStatistics

Bases: object

The use case is: >>> from pyiron_base import DatabaseStatistics >>> db_stat = DatabaseStatistics() >>> df = db_stat.performance() >>> df >>> df[‘duplicated indices’].values[0]

performance()

returns a pandas dataframe with the essential statistics of a pyiron postgres database

pyiron_base.database.performance.get_database_statistics()

This function returns the statistics of pyiron postgres database in the form of a pandas dataframe. The dataframe includes: - total number of connection - number of connection categorized by their state - maximum age of a transaction - number of checkpoints and their interval - size of indices - pair of duplicate indices and their total size usage: >>> from pyiron_base import get_database_statistics >>> get_database_statistics()