Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
gfnork node.js workshop Lesson #5 node.js datab...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
gfnork
June 20, 2014
Programming
0
470
gfnork node.js workshop Lesson #5 node.js databases
Redis, NoSQL, MongoDB, drivers
gfnork
June 20, 2014
Tweet
Share
More Decks by gfnork
See All by gfnork
Basic Mobile Application Design
freundschaft
0
510
gfnork node.js workshop Lesson #1 JavaScript Basics
freundschaft
0
960
gfnork node.js workshop Lesson #2 JavaScript Async
freundschaft
0
960
gfnork node.js workshop Lesson #3 node.js basics
freundschaft
0
470
gfnork node.js workshop Lesson #4 middleware for node
freundschaft
0
520
gfnork node.js workshop Lesson #6 Unit testing
freundschaft
0
460
Other Decks in Programming
See All in Programming
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
高速開発のためのコード整理術
sutetotanuki
1
400
CSC307 Lecture 09
javiergs
PRO
1
840
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
AgentCoreとHuman in the Loop
har1101
5
240
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
110
dchart: charts from deck markup
ajstarks
3
990
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
290
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.5k
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
140
エンジニアに許された特別な時間の終わり
watany
106
230k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
How to build a perfect <img>
jonoalderson
1
4.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
62
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
The Invisible Side of Design
smashingmag
302
51k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Transcript
None
2
3
4
5
6
7 http://redis.io/download
8
9
10 Import the redis driver make an Instance of a
connection
11
12 Insert Command Value Callback Key
13
14 Load Command Key Callback
15
16
17
18
19
20
21 Node 1 Primary Node 1 Secondary Node 1 Secondary
22 Node 1 Node 1 Secondary Node 1 Secondary Election
23 Node 1 Node 1 Node 1 Secondary Primary
24 Node 1 Node 1 Secondary Node 1 Secondary Primary
25
26 a c d Shard1 b e Shard2
27 a c1 d Shard1 b e Shard2 c2
28 a c1 d Shard1 b e Shard2 c2
29 mongod mongod mongod Replica Set mongod mongod mongod Replica
Set mongod mongod mongod Replica Set mongod mongod mongod Config Servers mongos Client
30
31 http://www.mongodb.org/downloads
32
33
34
35
36
37
38
39 assigning Connection to db import Connectiong to db Host
Adress Port Database Name
40
41 Get a Collection Collection Name Insert Command A Java
Script Object Callback
42
43
44
45 Returns a Collection Search Command Converts a Cursor to
an Array
46 Returns a single Object can be used like any
other Object
47
48
49 import Connectiong to db Host Adress Port Database Name
assigning Connection to Variable db
50 assigning Connection to Variable db
51
52 Reactiong to Event Event Name Handling Error Where the
Ountput gets piped to String attached to Error Message
53
54 Event that will only be done once Event Name
55
56 Schema Name Mongoose Object Function for defining Schemas Variables
57
58 Model Name Function for creating Models Model Name Schema
Name
59
60
61
62 Creating new Instance of Model JS Object matching Schema
63
64 Function for saving
65
66
67
68 Returns An Array of Objects
69
70
71
72 Key Searches Objects with the Name 'Geek' and returns
the Value for the Key 'skills'
73
74
75
76
77 Get a Collection Command for making Indexes Name of
the Key that has to be indexed 1 = Ascending 2 = Descending
78
79
80
81
82
83
84
85
86
87