DEV Community

Cover image for Just in! A New Persistent NoSQL Database (18 KiB only!)

Just in! A New Persistent NoSQL Database (18 KiB only!)

Trinmar Boado on March 17, 2020

Welcome to Trin.DB! A fast RESTful persistent or in memory NoSQL database (18 KiB only!) Github Repo: https://github.com/trinly01/Trin...
Collapse
 
thecodrr profile image
Abdullah Atta

Would love if you showed some benchmarks instead of copy-pasting the whole API here.

Collapse
 
trinly01 profile image
Trinmar Boado

Hi Atta,
Nice suggestion!
You may contribute to this project by adding a benchmark.
Will love to merge it ❤️

Collapse
 
thecodrr profile image
Abdullah Atta

No it's your job to provide benchmarks. :(

Thread Thread
 
rezanop profile image
Rezanop

To be honest, I get your point, but I don't like this wording when it comes to open source projects :)

Thread Thread
 
thecodrr profile image
Abdullah Atta

Projects are projects. You can't expect other people to provide benchmarks for your project. You are the one advertising it, so you need to provide benchmarks. So yes, it is your job. Open source is not an excuse.

Collapse
 
trinly01 profile image
Trinmar Boado

npmjs.com/package/msgpack

node-msgpack is currently slower than the built-in JSON.stringify() and JSON.parse() methods. In recent versions of node.js, the JSON functions have been heavily optimized. node-msgpack is still more compact, and we are currently working performance improvements. Testing shows that, over 500k iterations, msgpack.pack() is about 5x slower than JSON.stringify(), and msgpack.unpack() is about 3.5x slower than JSON.parse().

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga

Looks very interesting! How is the performance when you have 100.000 - 1.000.000 records?

Collapse
 
trinly01 profile image
Trinmar Boado

Hi Roelof, Contributors are welcome.
Need help to test it using real world scenarios.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Currently I am interested in JSON schema validation, perhaps with Ajv.

Collapse
 
trinly01 profile image
Trinmar Boado • Edited

Thanks for the suggestion. <3
I already converted it from appendFileSync to fileWriteStream

Collapse
 
trinly01 profile image
Trinmar Boado

All suggestions are being considered. Some are already implemented. Thank you to all of insights and inputs ❤️

 
trinly01 profile image
Trinmar Boado

Thanks for the detailed explanation ❤️

My goal is to be pure JS implementation with no binary dependencies.

I think streams are optimized to minimize CPU and memory overheads