Skip to content

Sorting cannot utilize indexes #3227

@zhangliang-zl

Description

@zhangliang-zl

My statement is as follows:

GRAPH.QUERY "asset" "CREATE INDEX :Device(updatedTime)"

GRAPH.QUERY "asset" "MATCH (dev1 :Device) RETURN dev1 ORDER BY dev1.updatedTime DESC SKIP 0 LIMIT 10"

My data volume is around 500w, and this query statement requires 3000ms. How should I accelerate it?

It is very fast without order by. Can I specify the default sorting of the data to speed up when writing data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions