Better JanusGraph data ingestion strategy.


Augusto Will <pw...@...>
 

Hi, I researched a lot and see that i can load file as a graph, but i need to run 20 different long txt files with Gremlin queries in order to migrate from Postgres to Janus.
As I can see, I can import a file as a graph, but i dont understand how can I run multiple files inside gremlin console.
In this case, is the same if i send these commands by websocket this way:

send 30 queries and every return from gremlin, send another query, to have allways 30 queries running. About the speed of this process, is the same thing to ask a Janus to read a file with these gremlin query or send them via websocket? Or send 20 by 20 by socket?
Because some long tables are too slow (on vertices creation)... How can I ask to Janus to run a file, and later run another file to fill the data of the other tables?

Thank you


Augusto Will <pw...@...>
 

I just connected to a janus graph server

:connect console

what command i need to send to Janus to execute a txt file with gremlin queries inside? Then after that, execute another txt file


Jason Plurad <plu...@...>
 

  :load       (:l  ) Load a file or URL into the buffer

References:
* http://tinkerpop.apache.org/docs/3.2.6/reference/#_console_commands
* http://kelvinlawrence.net/book/Gremlin-Graph-Guide.html#ld


On Tuesday, October 31, 2017 at 8:12:26 AM UTC-4, Augusto Will wrote:
I just connected to a janus graph server

:connect console

what command i need to send to Janus to execute a txt file with gremlin queries inside? Then after that, execute another txt file