I understand from http://orientdb.com/docs/last/Java-Multi-Threading.html 
that OrientDB is not multithreaded. Altough you can have seperate database 
instances running on seperate threads.

That's why functions like above worries me, it's not working with promises 
or callbacks as you expect from a single threaded high performance app 
(f.e. nodejs).  I'm proberly missing something  but i;m but just curious :).


Op dinsdag 30 juni 2015 17:47:58 UTC+2 schreef Enrico Risa:
>
> Hi Joris
>
> can you elaborate more?
>
> what do you mean by your orientdb thread?
> OrientDb is multithread and can accept more requests in parallel.
>
>
> 2015-06-30 17:10 GMT+02:00 Joris de Geringel <[email protected] 
> <javascript:>>:
>
>> Hi,
>>
>> I was wondering, I wrote a function in Studio that does a couple of 
>> queries and then returns a response.
>>
>> For example:
>>
>> var db = orient.getDatabase();var roles = db.query("select from ORole where 
>> name = ?", roleName);if( roles == null || roles.length == 0 ){
>>   response.send(404, "Role name not found", "text/plain", "Error: role name 
>> not found" );
>> }
>>
>> It looks to me like the query is executed Synchronously on my orientDB 
>> thread and thus blocks all other requests till it's done. Is this correct? 
>> And if so, isn't this hurting performance since orientdb has a single 
>> thread architecture?
>>
>> Kr,
>> Joris
>>
>>
>>
>>
>>
>>  -- 
>>
>> --- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to