From cee3b0e8c614d73e2d8bc0453dbb9fcee5562619 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:16:49 -0500 Subject: [PATCH] init index_elapsed in case auto indexing is off --- datapusher/jobs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datapusher/jobs.py b/datapusher/jobs.py index bf72c6a..bdb3097 100644 --- a/datapusher/jobs.py +++ b/datapusher/jobs.py @@ -1720,6 +1720,7 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None): # if a column's cardinality <= AUTO_INDEX_THRESHOLD, create an index for that column auto_index_dates = config.get("AUTO_INDEX_DATES") auto_unique_index = config.get("AUTO_UNIQUE_INDEX") + index_elapsed = 0.0 if ( auto_index_threshold or (auto_index_dates and datetimecols_list)