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
gfnork node.js workshop Lesson #5 node.js datab...
Search
gfnork
June 20, 2014
Programming
480
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
gfnork node.js workshop Lesson #5 node.js databases
Redis, NoSQL, MongoDB, drivers
gfnork
June 20, 2014
More Decks by gfnork
See All by gfnork
Basic Mobile Application Design
freundschaft
0
540
gfnork node.js workshop Lesson #1 JavaScript Basics
freundschaft
0
990
gfnork node.js workshop Lesson #2 JavaScript Async
freundschaft
0
1k
gfnork node.js workshop Lesson #3 node.js basics
freundschaft
0
480
gfnork node.js workshop Lesson #4 middleware for node
freundschaft
0
530
gfnork node.js workshop Lesson #6 Unit testing
freundschaft
0
470
Other Decks in Programming
See All in Programming
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
1
150
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
670
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
330
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
iOSDC2026登壇資料.pdf
riofujimon
0
150
XHTMLが残したもの
yosuke_furukawa
PRO
2
780
アクセシビリティから考える情報設計
high_g_engineer
0
370
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
240
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
0
260
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
業務時間外もAIに働いてもらう話
colorful12
3
10k
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
110
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
450
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
600
How to Ace a Technical Interview
jacobian
281
24k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
430
Making the Leap to Tech Lead
cromwellryan
135
10k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Typedesign – Prime Four
hannesfritz
42
3.2k
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