make species stats up to 70% faster
This commit is contained in:
@@ -45,7 +45,8 @@ def get_connection(path: str):
|
|||||||
return sqlite3.connect(path, check_same_thread=False)
|
return sqlite3.connect(path, check_same_thread=False)
|
||||||
|
|
||||||
|
|
||||||
def get_data(conn: Connection):
|
@st.cache_resource()
|
||||||
|
def get_data(_conn: Connection):
|
||||||
df1 = pd.read_sql("SELECT * FROM detections", con=conn)
|
df1 = pd.read_sql("SELECT * FROM detections", con=conn)
|
||||||
return df1
|
return df1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user