You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for PostgreSQL as alternative to MongoDB #533
Reacted by Michael Prentice, Brendan Heywood, Takanori Kishikawa, Louis Kottmann, Aru Sahni, Max Falk, Paul Eipper, B, Justin Dugger, PotHix and 43 more
Mongo can be a pain and can be very expensive to scale in the cloud. At least allowing to swap the data store to AWS DynamoDb (also noSQL as a scalable Db-as-a-service) would alleviate some of this for large deployments or in an enterprise setting. But PostgreSQL 9.3 would work too.
Reacted by Michael Prentice, BarnumD, Al Lopez, always19, ilgu-lee, Benjamin Le Du, Martin Eneqvist, Samuel Crespo, Vladimir Vlach, Ricardo Cardona Ramirez and 4 more
We found a few temporary road blocks that the our team is having to deal with.
Meteor is yet to release the official support to SQL, so we are playing only with alpha implementations at this point. That means that some of the core packages, like the accounts, don't work 100% with SQL yet. We are patching what we can to make it work, and hopefully can contribute something back to the to meteor master branch. https://github.com/RocketChat/Rocket.Chat/compare/postgresql
The third party packages we use, also do not support SQL yet, for obvious reasons. We are creating an abstraction layer that overwrites some meteor APIs to make they work without having to fork them (at least most of them) using https://github.com/goodybag/mongo-sql
We are refactoring the all the source code to isolate all DB calls into a package. The idea is to turn it into a replaceable package with the DB of choice. This should be finished this week. https://github.com/RocketChat/Rocket.Chat/compare/models
Still early days to commit to a date.. but I'll update this issue more regularly on our progress.
Any news on PostgreSQL integration? The ticket was closed almost a year earlier and its very hard to justify using MongoDB with an opensource project nowadays. Thanks in advance
postgres has had a json/jsonb datatype for a while. it should be fairly easy to just change a document store to a postgres table jsonb store. each table would be a "collection" in mongo with one jsonb field per table.
If there is a decent repository layer this shouldnt be too much work.
Mongo has way less hosting options and is much more expensive to host.
Going this route you could virtually use any database like mysql etc.. as they have json fields as well.
@apjapj@seand88 If you want a similar platform that supports PostgreSQL, look at Mattermost. As noted in #533 (comment), there's no way this is going to happen.
it should be fairly easy to just change a document store to a postgres table jsonb store. each table would be a "collection" in mongo with one jsonb field per table.
If there is a decent repository layer this shouldnt be too much work.
Feel free to try, I'd love to see that you are right :) I think it is not that trivial :)
@loid345 we don't have any plans to replace MongoDB right now. But we are always open to contributions if figure out an easy way to make this replacement.
Activity
dosire commentedon Aug 23, 2015
More context in https://about.gitlab.com/2015/08/22/gitlab-7-14-released/
To ship in 8.0 we need something to integrate around September 7 I think (@maxlazio knows more) so that will be really tight. Alternatively we can ship in 8.1. Please keep us posted.
engelgabriel commentedon Aug 24, 2015
http://info.meteor.com/blog/an-early-look-at-sql-in-meteor
engelgabriel commentedon Aug 25, 2015
Some approach to consider
http://www.postgresql.org/docs/9.4/static/datatype-json.html
engelgabriel commentedon Aug 25, 2015
An early look at SQL in Meteor
https://forums.meteor.com/t/an-early-look-at-sql-in-meteor/8736
engelgabriel commentedon Sep 1, 2015
More people wanting this to happen
#639
jclabaugh commentedon Sep 10, 2015
+1
Mongo can be a pain and can be very expensive to scale in the cloud. At least allowing to swap the data store to AWS DynamoDb (also noSQL as a scalable Db-as-a-service) would alleviate some of this for large deployments or in an enterprise setting. But PostgreSQL 9.3 would work too.
engelgabriel commentedon Sep 16, 2015
We found a few temporary road blocks that the our team is having to deal with.
https://github.com/RocketChat/Rocket.Chat/compare/models
Still early days to commit to a date.. but I'll update this issue more regularly on our progress.
95 remaining items
apjapj commentedon Sep 25, 2020
Any news on PostgreSQL integration? The ticket was closed almost a year earlier and its very hard to justify using MongoDB with an opensource project nowadays. Thanks in advance
piotrkochan commentedon Sep 25, 2020
@apjapj I don't believe that rocket chat will support postgresql ever
seand88 commentedon Sep 25, 2020
postgres has had a json/jsonb datatype for a while. it should be fairly easy to just change a document store to a postgres table jsonb store. each table would be a "collection" in mongo with one jsonb field per table.
If there is a decent repository layer this shouldnt be too much work.
Mongo has way less hosting options and is much more expensive to host.
Going this route you could virtually use any database like mysql etc.. as they have json fields as well.
kohenkatz commentedon Sep 25, 2020
@apjapj @seand88 If you want a similar platform that supports PostgreSQL, look at Mattermost. As noted in #533 (comment), there's no way this is going to happen.
pierreozoux commentedon Sep 25, 2020
Feel free to try, I'd love to see that you are right :) I think it is not that trivial :)
Merge pull request RocketChat#533 from WideChat/develop_pwa-catchup-6…
loid345 commentedon Aug 18, 2021
Are there any plans to support postgresql? Postgresql can successfully replace mongodb and has higher performance
https://www.enterprisedb.com/news/new-benchmarks-show-postgres-dominating-mongodb-varied-workloads
rodrigok commentedon Aug 30, 2021
@loid345 we don't have any plans to replace MongoDB right now. But we are always open to contributions if figure out an easy way to make this replacement.
pierreozoux commentedon Nov 8, 2021
There is maybe hope over there:
https://www.mangodb.io/
yourhomelab commentedon Feb 8, 2023
Is this still on the list and work in progress?
yorkfly commentedon Sep 30, 2024
Any updates?
reetp commentedon Sep 30, 2024
Please read all the comments, and notably these ones.
#533 (comment)
#533 (comment)
In short the answer is no, and not for the foreseeable future either.
LZeugirdor commentedon Feb 11, 2026
rip, no stoat or rocket chat on my pi, it's annoying but i'm going to have to find an alternative.