Skip to content

how to optimise this sql, its execution is extremely slow. #2170

Open
@fengzhongye

Description

@fengzhongye

SELECT
*
FROM
ag_catalog.cypher (
'chunk_entity_relation', $$ MATCH ( n ) OPTIONAL MATCH ( n ) -[ r ]- ( ) WITH n,
COUNT ( r ) AS DEGREE RETURN n,
DEGREE
ORDER BY
DEGREE DESC
LIMIT 1000 $$
) AS ( n agtype, DEGREE agtype );

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions