Single threaded?

93 views
Skip to first unread message

Maxi

unread,
May 11, 2012, 4:23:52 AM5/11/12
to nessDB
Hi, nessDB is single threaded right? Isn't this going to be a large
reason for bad performance?
Now you could say that I should simply start multiple nessDB
processes, but what happens if multiple people write into the same
memory at the same time?

Bohu TANG

unread,
May 11, 2012, 5:00:35 AM5/11/12
to nes...@googlegroups.com
HI,
First,  you need a proxy to route keys to different nessDB.

Second, make sure your nessDB programs are in different folders.
Because every nessDB process will write data to its 'ndbs' folder which in current directory.

"what happens if multiple people write into the same
memory at the same time"
 
Actually, others client will be blocked a moment, since the db-server can't response immediately(The same time can only handle one client request).

Thanks,
BohuTANG
--
BohuTANG

"The great artist is the simplifier."--- Vincent Van Gogh

Reply all
Reply to author
Forward
0 new messages