2017-02-26 22:38:06 +00:00
|
|
|
"""Recorder constants."""
|
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DATA_INSTANCE = "recorder_instance"
|
2020-07-18 05:07:37 +00:00
|
|
|
SQLITE_URL_PREFIX = "sqlite://"
|
2020-08-05 12:58:19 +00:00
|
|
|
DOMAIN = "recorder"
|
2020-09-02 08:12:56 +00:00
|
|
|
|
|
|
|
CONF_DB_INTEGRITY_CHECK = "db_integrity_check"
|
2021-03-09 21:16:19 +00:00
|
|
|
|
2021-11-04 15:46:45 +00:00
|
|
|
MAX_QUEUE_BACKLOG = 30000
|
|
|
|
|
2021-03-09 21:16:19 +00:00
|
|
|
# The maximum number of rows (events) we purge in one delete statement
|
2021-07-12 20:03:13 +00:00
|
|
|
|
|
|
|
# sqlite3 has a limit of 999 until version 3.32.0
|
|
|
|
# in https://github.com/sqlite/sqlite/commit/efdba1a8b3c6c967e7fae9c1989c40d420ce64cc
|
|
|
|
# We can increase this back to 1000 once most
|
|
|
|
# have upgraded their sqlite version
|
|
|
|
MAX_ROWS_TO_PURGE = 998
|