Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Support for PostgreSQL as alternative to MongoDB

Open engelgabriel opened this issue 11 years ago • 98 comments

Elephants don't fly, most of the time: http://meteor-postgres.readthedocs.org https://github.com/meteor/postgres-packages

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

engelgabriel avatar Aug 21 '15 05:08 engelgabriel

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.

dosire avatar Aug 23 '15 17:08 dosire

http://info.meteor.com/blog/an-early-look-at-sql-in-meteor

engelgabriel avatar Aug 24 '15 21:08 engelgabriel

Some approach to consider http://www.postgresql.org/docs/9.4/static/datatype-json.html

engelgabriel avatar Aug 25 '15 17:08 engelgabriel

An early look at SQL in Meteor https://forums.meteor.com/t/an-early-look-at-sql-in-meteor/8736

engelgabriel avatar Aug 25 '15 22:08 engelgabriel

More people wanting this to happen https://github.com/RocketChat/Rocket.Chat/issues/639

engelgabriel avatar Sep 01 '15 23:09 engelgabriel

+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.

jclabaugh avatar Sep 10 '15 16:09 jclabaugh

We found a few temporary road blocks that the our team is having to deal with.

  1. 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
  2. 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
  3. 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.

engelgabriel avatar Sep 16 '15 05:09 engelgabriel

@engelgabriel thanks for the update!

dosire avatar Sep 18 '15 19:09 dosire

Any updates?

liamdawson avatar Oct 17 '15 14:10 liamdawson

Any update on this?

sammcj avatar Oct 22 '15 22:10 sammcj

We finished to isolate all DB calls into a package, and now it is helping with the multi tenant support. Once that's done, will jump back into this issue with MDG to get the work done.

engelgabriel avatar Oct 23 '15 17:10 engelgabriel

Hi @engelgabriel what is the ticket with the multi-tenant support? Is that #404?

sammcj avatar Nov 26 '15 00:11 sammcj

no @sammcj it is https://github.com/RocketChat/Rocket.Chat/issues/658

engelgabriel avatar Nov 26 '15 13:11 engelgabriel

Thanks @engelgabriel , great work :+1:

sammcj avatar Nov 26 '15 21:11 sammcj

+1

fetchTe avatar Dec 01 '15 20:12 fetchTe

+1

valessiobrito avatar Jan 15 '16 16:01 valessiobrito

+1

patrick-othmer avatar Jan 27 '16 09:01 patrick-othmer

We are starting right now:

https://github.com/RocketChat/meteor/tree/release-1.3-refactor-model-layer-v1

Stay tuned :wink:

engelgabriel avatar Feb 03 '16 21:02 engelgabriel

Fantastic!

All the best and thank you again.

On 4 Feb 2016, at 8:19 AM, Gabriel Engel [email protected] wrote:

We are starting right now: https://github.com/RocketChat/meteor

Stay tuned

— Reply to this email directly or view it on GitHub.

sammcj avatar Feb 03 '16 21:02 sammcj

Eagerly waiting for it ... :smiley:

knvpk avatar Feb 10 '16 06:02 knvpk