Skip to content

Memory may grow indefinitely #31

@eebrian123tw01

Description

@eebrian123tw01
class RawQuery:
    def __init__(self, str_query=''):
        self.str_query = str_query

    def execute(self):
        return self.raw_response

    @property
    def query(self):
        return self.str_query

    @property
    def raw_response(self):
        return self._resolve()

    @lru_cache(maxsize=None)
    def _resolve(self, *args, **kwargs):
        instance = Influxable.get_instance()
        return instance.execute_query(query=self.str_query, method='post')

lru_cache(maxsize=None) this line may cause memory grow indefinitely
functools.lru_cache If maxsize is set to None, the LRU feature is disabled and the cache can grow without bound.

thank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions