You can use both mutex in C++ or queries queueing in JS (it is more 
difficult to write in in C++) land to fix this.
Look at  https://github.com/Sannis/node-mysql-libmysqlclient  if you are 
interested.

суббота, 2 июня 2012 г., 11:00:57 UTC+4 пользователь Denys Khanzhiyev 
написал:
>
> Connection runs in separate thread from thread pool so for JS it is 
> asynchronous.
> This is not a competion but comparison gives motivation to improve library.
>
> The problem is that I can not run next query until I fetch prevoius 
> result, but you can. And this is just design problem. 
> Primitive calls to server are anyway synchronous - i.e. you can not run 
> next command until you receive result of previous (except with addtional 
> connection).
>
> 2012/6/2 Henri Gourvest <[email protected]>
>
>> Le 01/06/12 21:39, Denys Khanzhiyev a écrit :
>>
>>  I must admit your lib is faster than mine
>>>
>> Well it is not a competition.
>> I think the problem is firebird client library still connect 
>> synchronously to firebird server. If you run your tests again with a remote 
>> firebird server, you might have more different results because of latency.
>>
>> thanks you for your tests
>>
>>
>> -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-**
>> Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> nodejs+unsubscribe@**googlegroups.com<nodejs%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en>
>>
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to