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: CounterDB, to persist your likes/dislikes counts

4 pointsby jsdeveloperabout 2 years ago
A Solution to durably store your counts. For example number of likes&#x2F;dislikes on a post.<p>Its time complexity is O(1).<p>Single header only C++ file for storing and retrieving numbers.<p>It does this without increasing the file size, as its not append only DB. Which also means it can be slower on simultaneous writes to an index. Well if your 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