Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
社内LT2019/11/21
Search
Kento Matsumoto
November 21, 2019
Programming
70
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
社内LT2019/11/21
MongoDBについて
Kento Matsumoto
November 21, 2019
More Decks by Kento Matsumoto
See All by Kento Matsumoto
ストーリーポイント.pdf
stepanve
0
110
社内LT2020/01/23
stepanve
0
62
社内LT2019/11/7
stepanve
0
93
社内LT2019/10/24
stepanve
0
82
Other Decks in Programming
See All in Programming
ChromeでローカルLLM
ryu1013
0
130
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
370
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
260
sbt 2.0: takeoff
eed3si9n
0
150
すこし踏み込む CancellationToken
htkym
2
1.7k
contenteditable と日本語入力に向き合う
colorful12
0
190
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
780
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
350
AWSに止められる覚悟してますか?
morizo_1984
2
530
AmebaブログはKMPから卒業します
kmars0605
0
130
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
Featured
See All Featured
Done Done
chrislema
187
17k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Code Review Best Practice
trishagee
74
20k
A Soul's Torment
seathinner
8
3.7k
The Cult of Friendly URLs
andyhume
79
7k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
350
Code Reviewing Like a Champion
maltzj
529
40k
Abbi's Birthday
coloredviolet
4
10k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Transcript
Mongoの簡単な説明 (AWS DocumentDB) 社内勉強会:2019/11/21
MongoはNoSQLである。 NoSQL RDB NoSQL KVS ドキュメントDB リレーショナル DB 列指向型DB グラフSQL
キーバリュー ワイドカラム 用途 セッション ログ 正規化する必要 のないデータ 販売履歴と商 品 年間のレ ポート SNSの相関 図 例 Redis, MemoChach e, DataStore DynamoDB , Couchbase MongoDB, DocumentDB MySQL, PostgreSQL BigQuery, RedShift Neo4j, Polyglot
簡単なデモ
使っているツールの紹介 • Robo 3T https://robomongo.org/ ◦ シンプル ◦ 簡単なコマンドを叩く時 •
MongoDB Compass https://www.mongodb.com/products/compass ◦ 機能豊富 ◦ データの操作をする時
これから使えそうな機能
ジョインができる - Left Outer Joinのみできる db.facilities.aggregate( [ {$lookup: { from:
'facilityIds', // 結合するコレクション localField: 'id', // 結合元コレクションのフィールド foreignField: 'id', // 結合コレクションのフィールド as: 'c2' // 別名 } } ] );
バリデーションを設定できる - レベルがstrict、moderateを設定できる // strict 今のレコードも適応される updateもできなくなる db.runCommand( { collMod:
"facilities", // コレクション指定 validator: { phone: { $exists: true } }, validationLevel: "strict" // 不要 } ) // moderate 今のレコードは無視する。updateも問題なし。 db.runCommand( { collMod: "facilities", validator: { phone: { $exists: true } }, validationLevel: "moderate" } )
その他の機能 - 地図情報に対して、インデックスが張れる -> 貼ったindexに対して、近いものを選べる。$near .limit - トランザクション機能(Mongo4.0~) -> AWS
DocumentDBでは使えなさそう。。 - GridFS(ファイル保存:用途不明?)、全文検索(日本語未対応。。) etc.