ailabstw / go-pttai-core

:no_entry: [DEPRECATED] Current development in https://github.com/ailabstw/pttai-next
1 stars 1 forks source link

refine pttdb #19

Closed chhsiao1981 closed 5 years ago

poga commented 5 years ago

can you elaborate on what does this PR solve?

chhsiao1981 commented 5 years ago

The original pttdb.LDBBatch is not threadsafe.

In this PR, for each PutAll, we create new ldbBatch to avoid thread-conflict. The meaning of PutAll: Put all of these key-vals at once in batch.

chhsiao1981 commented 5 years ago

unable to pass the e2e-test. close for now.