Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-10-2022 10:17 AM
Is there a way to wait for an index to be built after issuing a Create Index
statement?
I have a situation where I do the following:
Meeting
Nodes from a CSVMeeting_id
fieldMeetingParticipants
Relationship from another CSV (which should be using the Meeting_id
index from step 2)The problem is that the create index step doesn't complete until after the load relationships import starts. This effectively makes my import take hours.
03-10-2022 12:43 PM
Presumably you could query call db.indexes()
of show indexes
and not run step 3 until you see the status of the index is ONLNE
03-11-2022 08:50 AM
Hi @dannyseismic ,
Try with CALL db.awaitIndex("MyIndexName", 300)
in between the second and third step.
Bennu
All the sessions of the conference are now available online