Live data from Hacker News

Red Hat Satellite to standardize on PostgreSQL backend

redhat.com

221–230 of 298 posts

Re: Red Hat Satellite to standardize on PostgreSQL backend

#221

Earlier quoted context omitted.

I'm going to go out on a limb and say Unifi Cloud Controller is not running the latest version and does not have journaling enabled.

> is not running the latest version MongoDB's not still in early prototype phase or similar is it? Basic reliability shouldn't really need the latest version any more, a few years in. :)

nodesocket said the latest version of Unifi Cloud Controller, not the latest version of MonogDB.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#222
post #178

A silly, genuine question: when I'm writing a NodeJS app, and I need to store a JSON in a DB that looks like this: { "a" : "b", "c" : { "ca":"cb", "cd":"ce" }, "d": { ... } } How do I store it? To me, NoSQL seemed like the choice in the past. This is not difficult in relational DBs, but it requires rather long SQL commands, and SQL table design. It seems to me that "MongoDB.insert(obj)" seems like the way to go, as i…

> How do I store it? To me, NoSQL seemed like the choice in the past. If you're using postgres, you could use a column of type jsonb. Postgres comes with many operators and functions ( https://www.postgresql.org/docs/11/functions-json.html ) to query into jsonb typed columns and many of them even allow index usage for very quick access. However, the other option would be to use proper SQL tables and normalization to…

In .NET I use Marten to use PostgreSQL as a document database, gives you a typed schema with JSONB storage.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#223
post #2

Is there a word for a case of "I told you so" that went on for so long that it curdled from frustration, to despair, to cynicism, to a realignment of your understanding of the human project as something barely capable of tying its own shoes and making it out to the mailbox and back?

The intensity and frequency of frustration are quite likely to subside if you are able to accept these:

- humans do not always act in their long term best interests

- humans do not always act in a rational manner

- often the former is indistinguishable from the cases where you are not aware of someone's incentives

- true change requires that people really accept it internally (and not just mere commitment to act differently)

Re: Red Hat Satellite to standardize on PostgreSQL backend

#224

Earlier quoted context omitted.

interesting - i never knew that. I use postgresql, so dont have first hand knowledge, but i saw this https://tableplus.io/blog/2018/09/mariadb-vs-postgresql-a-qu... > JSON support: PostgreSQL supports JSON and JSONB while MariaDB doesn’t. It supports an alias for JSON instead, which is a LONGTEXT column. Even the proposed json column, is not indexed - postgresql jsonb is indexed and queries fast.

Yeah MariaDB got 'dynamic columns' first, which iirc supported key values but not arrays, and then MySQL added a more complete 'json' data type, so the exact functionality differs by flavour and version. The postgres support is simply nicer to use and more powerful, e.g. the indexing. But if your RDBMS is any fairly-recent version of MariaDB or MySQL, you can use JSON too. Of the top of my head, the thing I find most…

Didn't PostgreSQL get hstore before MariaDB got dynamic columns?

Re: Red Hat Satellite to standardize on PostgreSQL backend

#225

I am quite surprised that companies still use Red Hat Satellite Server. In 2010 while I was still at Red Hat, deploying and managing it was the mainstay of the consulting business, and it was based on Oracle RAC. It was to my mind already legacy software at that time.

What are the good alternatives for managing your Red Hat servers?

Re: Red Hat Satellite to standardize on PostgreSQL backend

#226
post #117

Earlier quoted context omitted.

Tell that to AWS. They've banned relational databases for specific workloads because Dynamo (nosql) provides more consistent performance, and is easier to operate. Tons of conflation of Mongo's problems with those of nosql in this thread.

Did a project with Dynamo last year. Hope never to see it again. Compared with RBMS tooling looks like a high school project.

DynamoDB has had major improvements in the last few months: e.g. you get dynamic capacity provisioned tables (avoids re/write capacity exceeded exceptions because of capacity planning uncertainty), and transactions, to name two. However, even if you have a hosted RDBMS it has an implicit read and write capacity throughput that you need to design for (e.. hotspots in partitions), you just hit it a bit later in your project. The bounded latency at scale (throughput, and size of tables) is the main win for DynamoDB.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#227
post #43

Earlier quoted context omitted.

Always start with in-memory data structure with straightforward persistence (i.e. load and save it all at once, using some popular format). If you need ACID, then start with SQLite. If you need scalability as well, then PostgreSQL. Most other features aren't worth the hassle of configuration compared to a single file on disk and a library to link to. (But I suspect that most NoSQL apps these days would do just fine w…

Yup this. People don't realize just how performant SQLite can be. If you are running just 1 server and won't probably need more than SQLite is more than enough. 2 application servers and up is where PostgreSQL can come into play. https://www.sqlite.org/whentouse.html After reading the SQLite when-to-use document I transitioned some smaller marketing sites over from Postgres because it was overkill for the specific si…

The biggest problem with SQLite is that it seems to be easy to use it wrong. If you are using SQLite as it is supposed to be used, it has much better performance than its reputation suggests.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#228
post #206

I am no fun of MongoDB, but I must admit it has gotten a lot better in the past few years. So, why drop it now?

New license that's not OSS (MongoDB Inc saying it is doesn't make it so, the OSD determines OSS, not some company).

The upstream project has been pretty vocal about their reasons to switch, and it's not because of the license. MongoDB just isn't the right tool for their use case, despite valiant attempts to utilize it.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#229

I’ve never enjoyed Mongo for a second, not conceptually, not practically. But I don’t understand the people who act like Postgres is the end of everything. SQL never felt right for me either. It’s a fine language for business analysis, I guess, but is it actually pleasant for development? Do all of you who so enthusiastically post that it should be the first tool you reach for really never experience object-relationa…

Yes: what you’re really doing is documenting your data structures and access patterns, which is way less work to do consciously rather than trying to bolt it on ad hoc.

A really big thing is normalization which some people tend to downplay until they’ve had to write code to recurse complex structures enforcing consistency or making global changes. Similarly, atomicity and isolation are really useful characteristics to be able to take for granted without having to code around the problem everywhere.

The usual arc I've seen for document stores, ISAMs, etc. is that people say this is great based on the first 20 minutes and then about a year later realize that they've spent thousands of lines of code implementing a really clunky subset of what they'd get out of the box with a SQL database and the believed ease of use or performance benefits were far less dramatic than promised or even negative.

Re: Red Hat Satellite to standardize on PostgreSQL backend

#230

Does someone have the time explain what NoSQL Mongo didn’t do that PostgreSQL does? I guess I don’t really understand the structured SQL vs NoSQL when you aren’t accessing directly but via a program. I also don’t understand why they would have supported a NoSQL and object-relational at the same time at any point.

The primary fact is, the data their working with really lends itself to a more relational data store than non-relational.

they can leverage traditional SQL databases and achieve vast performance improvements by taking advantage of PostgreSQL's built in relationship handling

This is not unique to postgresql, but is more a property of traditional relational databases.

Post reply on HN