Postgres question
-
@gotwf said in Postgres question:
Good to know.
I had a need to setup a new instance and did not want to use Mongo for similar reasons as to why you were looking at options.
I documented what I did here: https://www.mangolassi.it/topic/22497/setup-nodebb-on-fedora-33-with-postgresql-and-nginx-with-https-only
I want to tinker with that some more.
-
@jaredbusch Cool.
Way back when I was first evaluating NodeBB with use of Postgre backend I checked a fairly large site that was using it. Ben's, maybe? Too long ago to recall but it definitely felt sluggish by comparison. Of course the question is whether mere correlation (very large site) or causation due to Postgres. Whatever, coupled w/some other concerns it was enough to put me off further exploration.
Which brings me to....
Please do share your thoughts w.r.t. my query above once you get a better feel. I do not hang much at Mangolassi so please ping me here.
TIA-- o/
-
@julian Thanks, Julian.
Mongo is rocking it for me presently but this incentivizes me to explore PostgreSQL some more. So much cool stuff, so little time. Sigh...
By "fully supported", may I take that to include commercial clients? Cuz if so, then that is a pretty big vote of confidence. Also, if so, any chance you could point to one such client I could peruse? At least get some seat of the pants impression? Preferably a medium to largish site?
-
the database abstraction layer is fairly stable, we haven't had to make many changes to it at all for years.
There definitely were changes to the database abstraction layer for Postgres with the latest one being less than a month ago: https://github.com/NodeBB/NodeBB/commits/master/src/database/postgres
Though I get that you mean that there wasn't any big refactor or breaking changes not connected to general NodeBB update (like upgrade to socket.io 3, zscan etc.).
In 2020 there were only 10 commits there and all were changes that applied to all databases. -
@julian said in Postgres question:
@oplik0 Yes, correct
I mean that the API itself is stable, and that we are not adding arguments and methods willy-nilly, and removing others.
So what about that conversion utility? It definitely worked when I tested taking a system from redis to mongo a couple years ago.
But that was a couple years ago.
-
I am also curious about converting the other direction. For, e.g. an clean install started on PostgreSQL transitioned back to Mongo? Not done any diggin' but since you're asking... might as well add mine to the query.
-
@julian said in Postgres question:
@gotwf the database abstraction layer is fairly stable, we haven't had to make many changes to it at all for years. The Postgres implementation is fully supported
It would be nice to have a bit more documentation for the Postgres support. It's only mentioned here and here:
https://docs.nodebb.org/configuring/config/
https://docs.nodebb.org/installing/os/fedora/If you follow the other OS install guides you already have installed MongoDB when you reach the config.json page.