Revert "perf: cache fieldname extraction"

This reverts commit c591fcc5c1.
This commit is contained in:
Ankush Menat 2024-01-17 12:44:09 +05:30
parent cf2be9d64e
commit ffe84c9f9d

View file

@ -4,7 +4,6 @@
"""build query for doclistview and return results"""
import json
from functools import lru_cache
from sql_metadata import Parser
@ -179,7 +178,6 @@ def is_standard(fieldname):
)
@lru_cache
def extract_fieldnames(field):
parser = Parser(f"select {field}, _frappe_dummy from _dummy")
columns = [col for col in parser.columns if col != "_frappe_dummy"]