Replies: 4 comments 21 replies
-
Hi @sxwebdev thank you for the question. TidesDB derived from K4 if you review the code it’s quite similar. The design started from LSMT then K4. My main problem with K4 is that there is GC lag and the C library isn’t as performant as it should be. K4 is an amazing storage but it’s not as finalized as TidesDB at this time. Well, actually it is rather finalized and for what it is it’s very fast. I do plan on doing more reviews and releases of K4 though we will see how the TidesDB Go package goes up against the K4 package! Right now primarily the focus is low level TidesDB. I wouldn’t leave K4 out the picture though :):) |
Beta Was this translation helpful? Give feedback.
-
Do you think it is possible to use this database to store information from the blockchain? With a simple key - transaction hash. lmdb shows itself to be the fastest for writing, but after 20-30 million data, a strong drop in performance is felt due to the fact that a large amount of RAM is needed. lmdb caches the entire tree for data that is not needed in memory. rocksdb needs to be prepared, but not everything is so smooth there, it also needs a large amount of RAM. pebble works very fast, microseconds for insertion without degradation in performance, but the search leaves much to be desired. k4 instantly eats up all the RAM on the same data and at the same time the insertion is very long. I have not tried tidesdb yet and have no idea whether it is suitable for tens of billions of data or not. and how it will affect RAM at the same time. in my case golang stack, nvme disks are used, but the amount of RAM is limited to 16gb. what can you say about this, is it suitable for such a task? |
Beta Was this translation helpful? Give feedback.
-
I also did a comparative test of writing 50000000 data where the key and value are the corresponding numbers. pebble did it in 3 seconds. |
Beta Was this translation helpful? Give feedback.
-
@sxwebdev GO binding initial release is out and TidesDB is at v0.7.0b I'd say if you wanna give that workload a whirl, why not give it a try. Lots of memory optimizations and more have went into the past few releases. Reads as well are now optimized with block indices. I will say though make take more memory but you can choose to disable on build. |
Beta Was this translation helpful? Give feedback.
-
Hello
Is tidesdb a new product that was inspired by k4?
Will k4 continue to be developed?
What are the main advantages of one over the other?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions