mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
d3f3cd3765
* Add indexes for fields * Add indexing schema
22 lines
485 B
Groovy
22 lines
485 B
Groovy
// We need to configure the console to have state:
|
|
// https://tinkerpop.apache.org/docs/current/reference/#console-sessions
|
|
:remote connect tinkerpop.server conf/remote.yaml session
|
|
:remote console
|
|
|
|
// 1 hour in milliseconds
|
|
:remote config timeout 3600000
|
|
|
|
println("Printing schema...")
|
|
|
|
mgmt = graph.openManagement()
|
|
mgmt.printSchema()
|
|
|
|
println("Starting graph creation...")
|
|
|
|
g.io('/crs_scratch/graph.xml').read().iterate()
|
|
|
|
println("Graph creation complete.")
|
|
|
|
:remote console
|
|
:exit
|