Skip to content

Commit

Permalink
remove lru cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav274 committed Oct 9, 2023
1 parent 1543831 commit 181f988
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions evadb/executor/abstract_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
from abc import ABC, abstractmethod
from collections import deque
from functools import lru_cache
from typing import TYPE_CHECKING, Any, Generator, Iterable, List, TypeVar

if TYPE_CHECKING:
Expand All @@ -40,7 +39,7 @@ def __init__(self, db: EvaDBDatabase, node: AbstractPlan):
self._config: ConfigurationManager = db.config if db else None
self._children = []

@lru_cache(maxsize=None)
# @lru_cache(maxsize=None)
def catalog(self) -> "CatalogManager":
"""The object is intentionally generated on demand to prevent serialization issues. Having a SQLAlchemy object as a member variable can cause problems with multiprocessing. See get_catalog_instance()"""
return self._db.catalog() if self._db else None
Expand Down

0 comments on commit 181f988

Please sign in to comment.