Skip to content

Commit d51885b

Browse files
committed
feat(graph):优化Nebula图数据库查询性能
1 parent 4936907 commit d51885b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memos/graph_dbs/nebular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def get_grouped_counts(
11311131
group_by_fields.append(alias)
11321132
# Full GQL query construction
11331133
gql = f"""
1134-
MATCH (n)
1134+
MATCH (n /*+ INDEX(idx_memory_user_name) */)
11351135
{where_clause}
11361136
RETURN {", ".join(return_fields)}, COUNT(n) AS count
11371137
GROUP BY {", ".join(group_by_fields)}

0 commit comments

Comments
 (0)