TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

3 pointsby jsdeveloperabout 2 years ago
Hi All,<p>vDB is Solution to durably store your likes&#x2F;dislikes count (or any count of your choice).<p>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).<p>Single header only C++ file for storing and retreiving numbers.<p>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&#x2F;dislikes counts, than it must not be much of a problem. As reads are done more than writes for such cases.

no comments

no comments