floyd icon indicating copy to clipboard operation
floyd copied to clipboard

多线程Write()支持

Open gaodq opened this issue 6 years ago • 2 comments

https://github.com/PikaLabs/floyd/blob/01a6979f4e20d6e0bb72c961a66ac40b39ecd4c7/floyd/src/floyd_impl.cc#L385-L391 这里是不是可以支持一下多线程写,像leveldb那样的多个写合并到一个中

gaodq avatar Mar 12 '18 10:03 gaodq

we have support batch writes when we writing log entries and when apply the log entries to state machine

baotiao avatar Mar 12 '18 15:03 baotiao

https://github.com/PikaLabs/floyd/blob/01a6979f4e20d6e0bb72c961a66ac40b39ecd4c7/floyd/src/floyd_impl.cc#L608-L618 I mean before writing to log, entries at L618 will always contain only one item. I suppose we can merge multi threads' write operation into entries.

gaodq avatar Mar 13 '18 01:03 gaodq