Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-23-2022 12:34 PM
Hi,
I recently noticed that simple label lookups like
MATCH (n:Resource) RETURN n LIMIT 5
Take very long. When I ran PROFILE, I noticed that all label lookups were doing AllNodesScan instead of NodeByLabelScan. I don't recall deleting any special indexes for node labels, but if I did, is there a way to recreate them to get fast NodeByLabelScan lookups again?
Solved! Go to Solution.
12-08-2022 11:14 AM
Hi @alex3 ,
Can you execute
CREATE LOOKUP INDEX node_label for (n) on each labels(n)
and then retry?
Bennu
12-07-2022 03:01 PM
An update on this. I have tried creating a few nodes of a new label :TestLabel, and finding nodes of that label does not use the NodeByLabelScan for search. So it appears somehow the functionality is broken for the DBMS. Restarting has not fixed it.
12-07-2022 03:13 PM
12-08-2022 11:14 AM
Hi @alex3 ,
Can you execute
CREATE LOOKUP INDEX node_label for (n) on each labels(n)
and then retry?
Bennu
12-08-2022 02:26 PM
Fixed!!! Thank you so much.
All the sessions of the conference are now available online