Skip to content

I hope ZoneTree can provide a better out-of-the-box performance experience #101

Answered by koculu
LeoYang06 asked this question in Q&A
Discussion options

You must be logged in to vote

I have executed some benchmarks using LiteDB and DBreeze, and neither of them is directly competitive in terms of performance with ZoneTree.

In short, you have misused ZoneTree. What you are doing is similar to pressing the gas pedal and brake pedal over and over again and then complaining about the speed of the car.

ZoneTree's Upsert and Insert methods are thread-safe, and the data is persisted to the disk immediately.

Never call EvictToDisk manually; it is called automatically when needed. If you really want to do it, always let it run in the background. Don't block your main thread using WaitForBackgroundThreads.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by koculu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants