MongoDB何時不該使用,MongoDB使用

來源:互聯網
上載者:User

MongoDB何時不該使用,MongoDB使用

這篇文章很認真的舉了在使用MongoDB遇到的困難,和最終拋棄MongoDB的原因。

花了不少時間看完,不過還沒有仔細看評論,等哪天不忙了,可以再分析一下裡面的資訊。

這裡簡單列舉一下作者的觀點:

1. MongoDB的document適合儲存自包含資料,不適用於document之間有Join的情境,在這種情境中,RDBMS + Cache最有效,既沒有冗餘資料,又能夠通過後台應用自動更新緩衝的方式提高程式的查詢效能,避免了多表join造成的查詢低效問題

2. 查詢加快的方法是將active stream資料放入一個document中尋找,mongodb是一種,前面說的cache也是類似方法

3. 社交資料本質上是圖的,但是關係型仍然能夠有效儲存,因此RDBMS + Cache的方法也很好


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.