Friday, February 15, 2019

New comment by int_19h in "Red Hat Satellite to standardize on PostgreSQL backend"

> the reason why data is better kept in a database system is because it often has a very different life cycle than applications. It often lives longer and gets used by more than one application.

It sounds like you're thinking about web and enterprise apps that share data sources. For those, absolutely, use DBMS. You don't want to solve concurrency and consistency yourself.

I was talking more broadly, of apps of all kinds. Does a TODO list app for your phone need a DBMS? There's not going to be any concurrent data access there, nor huge amounts of data, nor complicated queries. But that describes most apps, and most of their data! Even for web apps, an exclusive data store is more common than shared (just think about all the WordPress blogs online!).

> Also, procedural code is often far more complicated than a SQL query regardless of the number of records being processed.

If your language doesn't have some kind of declarative query framework for sequences, you're probably better off with SQL. But these days, who doesn't have that? Even Java caught up.

(I'd single out C++/STL for offering non-composable primitives, until ranges get into the standard. But C++ is a wrong choice for a data-heavy app in general, IMO. )



from Hacker News - New Comments: "WordPress" http://bit.ly/2BMSG4L
via IFTTT

No comments:

Post a Comment

Macclesfield to host Brentford in FA Cup fourth round - see full draw

Sixth-tier Macclesfield are rewarded with a home tie against Brentford in the FA Cup fourth round after their shock win over holders Crystal...