keyed-db icon indicating copy to clipboard operation
keyed-db copied to clipboard

How fast is this lib ? Can it be compared to to SQLite ?

Open sostenesapollo opened this issue 3 years ago • 3 comments

I've notticed that you are using a lot of resources to keep it blazing fast. But and about comparision with SQLite for example ? Or cannot be compared ?

For example, if I want to use this db in a project, which are the advantages ? it will be stored locally in a file ?

OR.. This lib is just for execution time, and handle the binary searches ?

sostenesapollo avatar Jun 01 '21 10:06 sostenesapollo

@sostenesapollo it's purely for execution time & sorting on pre-set dimensions -- if you've a really complex use case where sorting keeps changing, sqlite would probably better

adiwajshing avatar Jun 01 '21 10:06 adiwajshing

oh. okay.. I've never had seen a lib like this before, can you say to me the big advantages to use in baileys, and the time difference that it causes to you ?

sostenesapollo avatar Jun 01 '21 10:06 sostenesapollo

I’ve never compared it with SQLite, the reason I made this was because it’s perfect for ordering simple objects like chats & messages.

SQLite was a bit of overkill for Baileys at the time

On 01-Jun-2021, at 3:58 PM, Sóstenes Apollo @.***> wrote:

 oh. okay.. I've never had seen a lib like this before, can you say to me the big advantages to use in baileys, and the time difference that it causes to you ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

adiwajshing avatar Jun 01 '21 13:06 adiwajshing