I can execute this query below just fine through web interface. It takes virtually no time at all to finish.
SELECT from Person;
But when I try to do it from my Java application, it takes more than 17 seconds to finish.
The code I'm using is basically this two lines:
OrientGraph graph = new OrientGraph("remote:93.x.x.x/test");
OCommandRequest req = graph.command(new OCommandSQL(query));
req.execute();
Could it be that the REST requests are so much slower? Web interface is using plocal (I guess), while my Java app uses remote connection.