lsst.dax.ppdb  master-gdc6be1965f+3
Static Public Attributes | List of all members
lsst.dax.ppdb.ppdb.PpdbConfig Class Reference
Inheritance diagram for lsst.dax.ppdb.ppdb.PpdbConfig:

Static Public Attributes

 db_url = Field(dtype=str, doc="SQLAlchemy database connection URI")
 
 isolation_level
 
 connection_pool
 
 sql_echo
 
 dia_object_index
 
 dia_object_nightly
 
 read_sources_months
 
 read_forced_sources_months
 
 dia_object_columns
 
 object_last_replace
 
 schema_file
 
 extra_schema_file
 
 column_map
 
 prefix
 
 explain
 
 timer
 
 diaobject_index_hint
 
 dynamic_sampling_hint
 
 cardinality_hint
 

Member Data Documentation

◆ cardinality_hint

lsst.dax.ppdb.ppdb.PpdbConfig.cardinality_hint
static
Initial value:
= Field(dtype=int,
doc="If non-zero then use cardinality hint",
default=0)

◆ column_map

lsst.dax.ppdb.ppdb.PpdbConfig.column_map
static
Initial value:
= Field(dtype=str,
doc="Location of (YAML) configuration file with column mapping",
default=_data_file_name("ppdb-afw-map.yaml"))

◆ connection_pool

lsst.dax.ppdb.ppdb.PpdbConfig.connection_pool
static
Initial value:
= Field(dtype=bool,
doc=("If False then disable SQLAlchemy connection pool. "
"Do not use connection pool when forking."),
default=True)

◆ dia_object_columns

lsst.dax.ppdb.ppdb.PpdbConfig.dia_object_columns
static
Initial value:
= ListField(dtype=str,
doc="List of columns to read from DiaObject, by default read all columns",
default=[])

◆ dia_object_index

lsst.dax.ppdb.ppdb.PpdbConfig.dia_object_index
static
Initial value:
= ChoiceField(dtype=str,
doc="Indexing mode for DiaObject table",
allowed={'baseline': "Index defined in baseline schema",
'pix_id_iov': "(pixelId, objectId, iovStart) PK",
'last_object_table': "Separate DiaObjectLast table"},
default='baseline')

◆ dia_object_nightly

lsst.dax.ppdb.ppdb.PpdbConfig.dia_object_nightly
static
Initial value:
= Field(dtype=bool,
doc="Use separate nightly table for DiaObject",
default=False)

◆ diaobject_index_hint

lsst.dax.ppdb.ppdb.PpdbConfig.diaobject_index_hint
static
Initial value:
= Field(dtype=str,
doc="Name of the index to use with Oracle index hint",
default=None)

◆ dynamic_sampling_hint

lsst.dax.ppdb.ppdb.PpdbConfig.dynamic_sampling_hint
static
Initial value:
= Field(dtype=int,
doc="If non-zero then use dynamic_sampling hint",
default=0)

◆ explain

lsst.dax.ppdb.ppdb.PpdbConfig.explain
static
Initial value:
= Field(dtype=bool,
doc="If True then run EXPLAIN SQL command on each executed query",
default=False)

◆ extra_schema_file

lsst.dax.ppdb.ppdb.PpdbConfig.extra_schema_file
static
Initial value:
= Field(dtype=str,
doc="Location of (YAML) configuration file with extra schema",
default=_data_file_name("ppdb-schema-extra.yaml"))

◆ isolation_level

lsst.dax.ppdb.ppdb.PpdbConfig.isolation_level
static
Initial value:
= ChoiceField(dtype=str,
doc="Transaction isolation level",
allowed={"READ_COMMITTED": "Read committed",
"READ_UNCOMMITTED": "Read uncommitted",
"REPEATABLE_READ": "Repeatable read",
"SERIALIZABLE": "Serializable"},
default="READ_COMMITTED")

◆ object_last_replace

lsst.dax.ppdb.ppdb.PpdbConfig.object_last_replace
static
Initial value:
= Field(dtype=bool,
doc="If True (default) then use \"upsert\" for DiaObjectsLast table",
default=True)

◆ prefix

lsst.dax.ppdb.ppdb.PpdbConfig.prefix
static
Initial value:
= Field(dtype=str,
doc="Prefix to add to table names and index names",
default="")

◆ read_forced_sources_months

lsst.dax.ppdb.ppdb.PpdbConfig.read_forced_sources_months
static
Initial value:
= Field(dtype=int,
doc="Number of months of history to read from DiaForcedSource",
default=12)

◆ read_sources_months

lsst.dax.ppdb.ppdb.PpdbConfig.read_sources_months
static
Initial value:
= Field(dtype=int,
doc="Number of months of history to read from DiaSource",
default=12)

◆ schema_file

lsst.dax.ppdb.ppdb.PpdbConfig.schema_file
static
Initial value:
= Field(dtype=str,
doc="Location of (YAML) configuration file with standard schema",
default=_data_file_name("ppdb-schema.yaml"))

◆ sql_echo

lsst.dax.ppdb.ppdb.PpdbConfig.sql_echo
static
Initial value:
= Field(dtype=bool,
doc="If True then pass SQLAlchemy echo option.",
default=False)

◆ timer

lsst.dax.ppdb.ppdb.PpdbConfig.timer
static
Initial value:
= Field(dtype=bool,
doc="If True then print/log timing information",
default=False)

The documentation for this class was generated from the following file: