Or,
If the scripts are on github.com, you can lose them directly off the Internet without any local storage?
Send from a device with crappy keyboard and autocorrection.
/peter
Then possibly there could a plugin watching a folder and loading scripts that then can be packaged in some way, or we do a script plugin template for wrapping custom scripts?
Send from a device with crappy keyboard and autocorrection.
/peter
Then possibly there could a plugin watching a folder and loading scripts that then can be packaged in some way, or we do a script plugin template for wrapping custom scripts?
> Please keep in mind that for hosted environments and production servers you _don't_ want to load arbitrary files or URLs. Really, you don't.
The way in which I use Gremlin in production is as follows:
1. I never use the WebAdmin unless I'm just browsin' around.
2. For simple queries (e.g. g.v(1).out('knows').in('knows').name), I use the GremlinPlugin via my client code.
3. For complex algorithms, I write a server extension in Groovy that have embedded Gremlin. E.g.
public MyServerExtension .... {
static {
Gremlin.load();
}
public List<String> myEndPoint(...) {
def y = g.v(x).out.collect{
// do some stuffs
}
complexFunction(y).into.another.gremlin.expression.iterate();
return someList;
}
}
In short, for a hardcoded algorithm that will be used over and over by a system, its written as an extension and written in native Pipes, Gremlin-Java, or in Gremlin-??? as seen fit.
HTH,
Marko.
That is my approach too. However, then we need to provide a way to load custom custom plugins. Michael, let's talk about that next week.
This is not something we plan to support in hosted environments, but
with the hints James is investigating, we might come to a point where
it makes sense to allow it even in the hosted versions.
Let me know if you have questions on the plugins, would be happy to
help over Skype or so next week.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/