PpdbConfig¶
-
class
lsst.dax.ppdb.PpdbConfig¶ Bases:
lsst.pex.config.config.ConfigAttributes Summary
cardinality_hintIf non-zero then use cardinality hint ( int, default0)column_mapLocation of (YAML) configuration file with column mapping ( str, default'/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/dax_ppdb/master-g5768c874b9/data/ppdb-afw-map.yaml')connection_poolIf False then disable SQLAlchemy connection pool. db_urlSQLAlchemy database connection URI ( str, defaultNone)dia_object_columnsList of columns to read from DiaObject, by default read all columns ( List, default[])dia_object_indexIndexing mode for DiaObject table ( str, default'baseline')dia_object_nightlyUse separate nightly table for DiaObject ( bool, defaultFalse)diaobject_index_hintName of the index to use with Oracle index hint ( str, defaultNone)dynamic_sampling_hintIf non-zero then use dynamic_sampling hint ( int, default0)explainIf True then run EXPLAIN SQL command on each executed query ( bool, defaultFalse)extra_schema_fileLocation of (YAML) configuration file with extra schema ( str, default'/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/dax_ppdb/master-g5768c874b9/data/ppdb-schema-extra.yaml')isolation_levelTransaction isolation level ( str, default'READ_COMMITTED')object_last_replaceIf True (default) then use “upsert” for DiaObjectsLast table ( bool, defaultTrue)prefixPrefix to add to table names and index names ( str, default'')read_forced_sources_monthsNumber of months of history to read from DiaForcedSource ( int, default12)read_sources_monthsNumber of months of history to read from DiaSource ( int, default12)schema_fileLocation of (YAML) configuration file with standard schema ( str, default'/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/dax_ppdb/master-g5768c874b9/data/ppdb-schema.yaml')sql_echoIf True then pass SQLAlchemy echo option. timerIf True then print/log timing information ( bool, defaultFalse)Attributes Documentation
-
column_map¶ Location of (YAML) configuration file with column mapping (
str, default'/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/dax_ppdb/master-g5768c874b9/data/ppdb-afw-map.yaml')
-
connection_pool¶ If False then disable SQLAlchemy connection pool. Do not use connection pool when forking. (
bool, defaultTrue)
-
dia_object_columns¶ List of columns to read from DiaObject, by default read all columns (
List, default[])
-
dia_object_index¶ Indexing mode for DiaObject table (
str, default'baseline')Allowed values:
'baseline'- Index defined in baseline schema
'pix_id_iov'- (pixelId, objectId, iovStart) PK
'last_object_table'- Separate DiaObjectLast table
'None'- Field is optional
-
extra_schema_file¶ Location of (YAML) configuration file with extra schema (
str, default'/opt/lsst/software/stack/stack/miniconda3-4.5.4-fcd27eb/Linux64/dax_ppdb/master-g5768c874b9/data/ppdb-schema-extra.yaml')
-
isolation_level¶ Transaction isolation level (
str, default'READ_COMMITTED')Allowed values:
'READ_COMMITTED'- Read committed
'READ_UNCOMMITTED'- Read uncommitted
'REPEATABLE_READ'- Repeatable read
'SERIALIZABLE'- Serializable
'None'- Field is optional
-
object_last_replace¶ If True (default) then use “upsert” for DiaObjectsLast table (
bool, defaultTrue)
-
read_forced_sources_months¶ Number of months of history to read from DiaForcedSource (
int, default12)
-