From ccd9e6c8100eb6df8ee418a720340879eff30461 Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Mon, 19 Sep 2022 21:15:54 +0300 Subject: [PATCH] fix: Dataset timeout (#21516) (cherry picked from commit 94ed4279c7d69a4f72fd5db5fe69eb27a55d24c9) --- superset/models/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/models/core.py b/superset/models/core.py index f1c1e6bbdd102..512adfebc6889 100755 --- a/superset/models/core.py +++ b/superset/models/core.py @@ -603,6 +603,7 @@ def db_engine_spec(self) -> Type[db_engine_specs.BaseEngineSpec]: return self.get_db_engine_spec(url) @classmethod + @memoized def get_db_engine_spec(cls, url: URL) -> Type[db_engine_specs.BaseEngineSpec]: backend = url.get_backend_name() try: