Hi Ryan,

answers below:

2015-10-20 0:00 GMT+02:00 Ryan Chazen <[email protected]>:

> Hi
>
> I wanted to use the non-blocking java api, but
>
> 1) It seems to create a new threat for every single request? Is this right?
>
> https://github.com/orientechnologies/orientdb/blob/master/core/src/main/java/com/orientechnologies/orient/core/sql/query/OSQLNonBlockingQuery.java#L246
>
> Yes, this is what current implementation does, but we will add a thread
pool there.


> 2) You can't use the document API in non-blocking mode (eg,
> document.save() - you need to translate your document to a SQL text string
> and then run it as a query) ?
>


It's not supported right now, but you can create an issue and flag it as
"enhancement", we will take it into consideration


>
> Are both of these points correct? If so, it makes more sense to use the
> standard blocking API and run it in a thread pool, I think. Would be faster
> and not use 1000s of threads. Right?
>
>
Thanks

Luigi


> --
>
> ---
> 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.
>

-- 

--- 
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