MongoDB
第1回 使ってみようMongoDB:MongoDBでゆるふわDB体験|gihyo.jp … 技術評論社
特性とユースケースの説明
MongoDBの薄い本(The Little MongoDB Book) - cuspy diary(2012)
MongoDB〜その性質と利用場面〜(2014)
Learn
ドットインストール:MongoDB入門
MongoDB University
なぜ早いのか?(トレードオフは?)
MySQL vs MongoDB 1000 reads - Stack Overflow
複数のテーブルをlookupしなくていいから、そのような用途では早い
Node.jsのドライバ
MongoDB Node.js Driver
公式が提供している
mongooseというODMがある(Node.js向け)
Automattic/mongoose: MongoDB object modeling designed to work in an asynchronous environment.
node公式のドライバとの性能比較
Performance Difference in Mongoose vs MongoDB Native Driver
Mongodb-native over mongoose? - DEV Community 👩‍💻👨‍💻
どっち使う?という議論
In my opinion, if your data manages "many to many" relationships you should use relational databases, even for "one to many". You can make complex relationships in mongodb, but you should make several calls to the database to populate the references, which translates into more code lines and more checks. If that does not concern you, then go for mongodb.
mLabというDaaSがある
AWSやGCPでも使える
Fully Managed MongoDB, hosted on AWS, Azure, and GCP | MongoDB
Dockerで試す
docker pull mongo
docker run --name some-mongo -d mongo
docker exec -it some-mongo bash
DockerでMongoDBをインストールして試してみる - にわとりプログラマーの備忘録
TIPS
save()はupdateのときに呼ばれないのでここにhookするとハマるらしい
#NoSQL