Is there a way to load gremlin methods into the rexster/Titan on bootup?
This way I don't have to resend these methods each time I want to use them via rexpro. Currently I do stuff like this (trivial example):
rexpro_client.execute("def some_method(a){a.outE.count()}\n some_method("+some_variables+");")
rexpro_client.execute("def some_method(a){a.outE.count()}\n some_method("+some_variables2+");")
....
Which is obviously not efficient when executing this multiple times.
For extra clarification: I would obviously like to have my some_method
pre-defined so I could simply do this in stead:
rexpro_client.execute("some_method("+some_variables+");")
rexpro_client.execute("some_method("+some_variables2+");")