MongoDB and PostgreSQL thoughts

前端 未结 6 2018
伪装坚强ぢ
伪装坚强ぢ 2020-12-24 02:19

I\'ve got an app fully working with PostgreSQL. After reading about MongoDB, I was interested to see how the app would work with it. After a few weeks, I migrated the whole

6条回答
  •  無奈伤痛
    2020-12-24 02:38

    Let's quote what you wrote and see what it tells us:

    "I like a few things with Mongodb. However, I found certain queries I was
     doing in PostgreSql, I couldn't do efficiently in Mongodb. Especially,
     when I had to join several tables to calculate some logic."
    
    "I found the ODM to be very limiting compared to what Active Record offered
     with traditional (SQL) database systems."
    
    "I feel more comfortable working with PostgreSql than Mongodb. Only because
     I can join tables and do anything with the data."
    

    Based on what you've said it looks to me like you should stick with PostgreSQL. Keep an eye on MongoDB and use it if and when it's appropriate. But given what you've said it sounds like PG is a better fit for you at present.

    Share and enjoy.

提交回复
热议问题