From 8f549c8a8de7ec3788fff2788dfd03b88712d04f Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 17 Feb 2023 19:09:11 +0200 Subject: [PATCH] config: enable data index caching by default --- dvc/config_schema.py | 2 +- dvc/repo/__init__.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dvc/config_schema.py b/dvc/config_schema.py index 96c20995c..f90ef8f58 100644 --- a/dvc/config_schema.py +++ b/dvc/config_schema.py @@ -264,8 +264,8 @@ SCHEMA = { # section for experimental features "feature": { Optional("machine", default=False): Bool, - Optional("data_index_cache", default=False): Bool, # enabled by default. It's of no use, kept for backward compatibility. + Optional("data_index_cache", default=False): Bool, Optional("parametrization", default=True): Bool, }, "plots": { diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py index dee85d6db..9e0c7b150 100644 --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -381,9 +381,6 @@ class Repo: def data_index(self) -> Optional["DataIndex"]: from dvc_data.index import DataIndex - if not self.config["feature"].get("data_index_cache"): - return None - if not self.index_db_dir: return None