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.

Ask HN: Database guide for app developers?

5 pointsby md365over 7 years ago
A seasonal writer here. I’m trying to find out what developers look for while selecting a database for a native app? By database, I meant local as well as server-side.<p>What are the challenges, or features that you look for. For instance: Offline sync feature Read&#x2F;write speed Data types Security<p>And so on.<p>I couldn’t find any relevant guide for developers, so I’m researching to write one.

2 comments

oblibover 7 years ago
I decided years ago (2001) to not use a SQL database for a web based document creation&#x2F;management app I was making.<p>My reasons had to do with document integrity and database complexity. The short of it is I found SQL to be an awful approach to store and manage documents. Instead I used a simple flat file database for each user.<p>Another important reason I didn&#x27;t use SQL after reviewing it is that I felt that designing, implementing, and securing a SQL database that could handle the aspects of document creation and management and user management required a dedicated professional who&#x27;s made that a career choice and I couldn&#x27;t learn all that was necessary and create the app too. It would take years to become that proficient with SQL alone.<p>Two years ago I finally moved over to a NoSQL database, specifically CouchDB&#x2F;PouchDB, because those offer Offline data storage, sync features, Read&#x2F;write speed, and Security.<p>CouchDB is designed specifically for Documents and addresses all the issues I found with using SQL databases for document management, and it&#x27;s built specifically for use with web apps. From the CouchDB docs:<p>&quot;it embraces the natural idea of evolving, self-contained documents as the very core of its data model&quot; (<a href="http:&#x2F;&#x2F;docs.couchdb.org&#x2F;en&#x2F;2.1.1&#x2F;intro&#x2F;why.html#a-better-fit-for-common-applications" rel="nofollow">http:&#x2F;&#x2F;docs.couchdb.org&#x2F;en&#x2F;2.1.1&#x2F;intro&#x2F;why.html#a-better-fit...</a>)<p>For your paper, I would start by looking into available database options to see what they say their products are best at doing.<p>My experience is that SQL users tend to avoid NoSQL because it requires a very different way of doing things that they feel they can do just fine with SQL. They&#x27;re probably right, but for those just starting to learn about databases NoSQL may be the best choice.<p>Since I never got in the SQL boat my first look at CouchDB left me feeling like they designed and built exactly what I needed and moving over to it was incredibly easy for me.
jmnicolasover 7 years ago
I&#x27;m not sure I understand your question, I&#x27;ll try to answer it anyway ;-)<p>I&#x27;m a desktop developer. Either the DB comes from one of our supplier (we have Oracle, Sql Server and MySQL) or I&#x27;m building an application from scratch and I&#x27;ll choose Postgres.<p>I standardized on Postgres more than 10 years ago because it was free and at the time it felt better built than MySQL.<p>I never encountered a use case where NoSQL would have been a rational choice (take this with a grain of salt since I don&#x27;t have to scale).