Oriento Orientdb Node Driver.

198 views
Skip to first unread message

Al

unread,
Apr 10, 2014, 2:23:42 PM4/10/14
to orient-...@googlegroups.com

Luca Garulli

unread,
Apr 10, 2014, 7:02:53 PM4/10/14
to orient-database
Hi,
This Node.js driver has very clean API, it's based on binary protocol and it's aligned to OrientDB 1.7*. Anyone already tried it?

Lvc@


On 10 April 2014 20:23, Al <m...@gnetsystems.com> wrote:

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tfillmor

unread,
May 22, 2014, 12:54:48 PM5/22/14
to orient-...@googlegroups.com
server connection hangs on close, I filed a bug on it.  Of course it's possible that I did it wrong...  :)  I was following the examples and noticed that Oriento did not have an explicit close function.  So I added 'keepOpen: false' to the config but still hangs.  Anyone have a solution?
Here's the code:

var Oriento = require('oriento');

var server = Oriento({
    host: 'localhost',
    port: 2424,
    username: 'admin',
    password: 'admin',
    keepOpen: false
});

server.list()
.then(function (dbs) {
    console.log('there are ' + dbs.length + ' databases on the server');
})
.then(server.close);

Thanks!


On Thursday, April 10, 2014 11:23:42 AM UTC-7, Al wrote:

tfillmor

unread,
May 22, 2014, 12:58:47 PM5/22/14
to orient-...@googlegroups.com
Oops - forgot to say I'm using 1.7-rc2

MrFT

unread,
May 23, 2014, 4:57:13 AM5/23/14
to orient-...@googlegroups.com

Did some simple queries already. 
First version I tried baout a month ago was slow, reported it, current version seems to be a lot faster...

So the claims they made about the binary protocol being significantly faster seem to be coming true...


Some tests comparing query through Rest versus through oriento:

Query = select from school
Query 2 = select getSchoolV1( 'a2a3e1be-a3a4-11e3-ace8-005056872b95 fetchplan *:1' )

10x Query through REST took 34437 milliseconds. That's 0.29038534134796873 per second, and 3443.7 ms per event.
10x Query 2 through REST took 136 milliseconds. That's 73.52941176470588 per second, and 13.6 ms per event.

10x Query through Binary took 22713 milliseconds. That's 0.44027649363800464 per second, and 2271.3 ms per event.
10x Query 2 through Binary took 81 milliseconds. That's 123.45679012345678 per second, and 8.1 ms per event.




Op vrijdag 11 april 2014 01:02:53 UTC+2 schreef Lvc@:

MrFT

unread,
May 23, 2014, 4:59:35 AM5/23/14
to orient-...@googlegroups.com

Oh, 

but it is possible that the fetchplan didn't work as expected (as in some things were not 'unfolded' when querying with Oriento), so the second query might not be an honest comparison.



Op vrijdag 23 mei 2014 10:57:13 UTC+2 schreef MrFT:

Gaurav Dhiman

unread,
Jun 12, 2014, 5:11:45 AM6/12/14
to orient-...@googlegroups.com
How to ask Oriento to use REST protocol while talking to OrientDB ?
I could not find any example on Oriento github page - https://github.com/codemix/oriento

Regards,
Gaurav

Artem Orobets

unread,
Jun 12, 2014, 5:47:07 AM6/12/14
to orient-...@googlegroups.com
Hi Gaurav,

Oriento is a binary driver, not sure that it is possible. Why do you need that?

Best regards,
Artem Orobets

Orient Technologies

the Company behind OrientDB

Gaurav Dhiman

unread,
Jun 12, 2014, 7:57:21 AM6/12/14
to orient-...@googlegroups.com
Hi Artem,

Thanks, got to know that REST is not fully supported as of now in Oriento.

--
Best Regards,
Gaurav



On Thu, Jun 12, 2014 at 3:16 PM, Artem Orobets  wrote:
Hi Gaurav,

Oriento is a binary driver, not sure that it is possible. Why do you need that?

Best regards,
Artem Orobets

Orient Technologies

the Company behind OrientDB



--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/afQtdtGrDd0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages