From f1e874bab90ff1ae43c821a75ad891a2d672b808 Mon Sep 17 00:00:00 2001 From: junjun <752696511@qq.com> Date: Wed, 24 Sep 2025 21:12:19 +0800 Subject: [PATCH] perf: Optimize the speed of data querying --- backend/apps/datasource/crud/datasource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/datasource/crud/datasource.py b/backend/apps/datasource/crud/datasource.py index 43dfed4f..7c7aad38 100644 --- a/backend/apps/datasource/crud/datasource.py +++ b/backend/apps/datasource/crud/datasource.py @@ -395,7 +395,7 @@ def get_table_schema(session: SessionDep, current_user: CurrentUser, ds: CoreDat else: field_list.append(f"({field.field_name}:{field.field_type}, {field_comment})") schema_table += ",\n".join(field_list) - schema_table += '\n]\n' + schema_table += '\n]\n' t_obj = {"id": obj.table.id, "schema_table": schema_table} tables.append(t_obj)