optimize

data_base.db_initializers.load_simrun_general.optimize(db, dumper=None, select=None, scheduler=None, repartition=False, categorized=False, client=None)

Rewrite existing data with a new dumper.

It also repartitions dataframes such that they contain 5000 partitions at maximum.

This method is useful to convert older databases that were created with an older (less efficient) dumper.

Parameters:
db : DataBase

The database to optimize.

select : list, optional

List of keys to optimize. Default is None, and all data is optimized: ['synapse_activation', 'cell_activation', 'voltage_traces', 'dendritic_recordings'].

client : distributed.Client, optional

Distributed Client object for parallel computation.

dumper : module, deprecated

Dumper to use for re-saving the data in a new format. Default is None, and the dumper is inferred from the data type. See also: _get_dumper()

Deprecated since version 0.5.0: The dumper argument is deprecated and will be removed in a future version. Dumpers are configured in the centralized config module.

Returns:

None