Hi Damu, 1. After each updata the buffer The problem with 2. is that if your server crashes, all your updates will be lost. Best, Vlad
Joined: Feb 26, 2003
Hi Vlad, thank you for reply. But it is too frequent for the server to do writing, if there are too many clients. How do you write the buffer to disk? I write the whole buffer to disk as following: I think buffer's advantage of fast operation is damaged if write the whole buffer to disk too often. I had thought the problem of server crash. But when I rethink it, I was trapped in dilemma. [ November 07, 2003: Message edited by: damu liu ]
subject: NX: If you use ByteBuffer, when do you store the data into disk?