Michael Hunger wrote > > The gremlin plugin (as does the cypher plugin) take an map (a json map) as > "params", each of which which you then can refer to everywhere in the > gremlin script (key == variable name, value == value). So no need for > JSONSlurper. >
Ahh, that's different than Rexster's Gremlin extension (https://github.com/tinkerpop/rexster/wiki/Gremlin-Extension). That makes things easy. Michael Hunger wrote > > The real problem here lies in the fact that each of your statements (with > different parameters) will cause the groovy-scripting engine to generate a > new groovy class, which will in turn > * cause PermGen OutOfMemory errors as those can't be garbage collected as > long as the script engine is around > * will take about factor 100-1000 longer to execute (parsing, class > generation, loading and such). > > For the first issue we have a work-around in the plugin which recreates > the script-engine every 500 requests (should probably be configurable) but > this is less than optimal. The second problem will hit you all the time. > What do you recommend for the second problem? And are you saying it will be 100-1000 longer than a normal Groovy or 100-1000 longer than Java? Last week when I emailed you, you were looking into a way to store a custom, server-side Gremlin library. Would that help? - James -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Feedback-after-evaluation-tp3569774p3574372.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. _______________________________________________ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user