Commit 5c766e4
authored
feat: introduce global await for index creation (#790)
Right before data is being written and right after scripts have been invoked we now call
cypher procedure "db.awaitIndexes".
This ensures that any custom indexes created from custom scripts will have leeway room to
finish construction before we write data.
Can be tweaked using option "index.await.timeout". Default 300, set to 0 for old behaviour
i.e. no wait.1 parent 814060e commit 5c766e4
File tree
2 files changed
+12
-0
lines changed- common/src/main/scala/org/neo4j/spark/util
- spark-3/src/main/scala/org/neo4j/spark/writer
2 files changed
+12
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
| |||
651 | 656 | | |
652 | 657 | | |
653 | 658 | | |
| 659 | + | |
| 660 | + | |
654 | 661 | | |
655 | 662 | | |
656 | 663 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
0 commit comments