Skip to content

Show HN: A Solution to durably store your likes/dislikes counts

github.com/anuragvohraec
3 pointsjsdeveloperdiscuss
On HN

Hi All,

vDB is Solution to durably store your likes/dislikes count (or any count of your choice).

Its takes O(1) time to read and put unsigned long values to DB, as it similar to Arrays (there are no keys but you use index to store counts).

Single header only C++ file for storing and retreiving numbers.

And one more thing it does this without increasing the file size, as its not append only DB. Which also means it can be slower on simultenous writes. Well if you task is just to store likes/dislikes counts, than it must not be much of a problem. As reads are done more than writes for such cases.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.