-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchoose-a-database.twee
More file actions
199 lines (100 loc) · 6.94 KB
/
choose-a-database.twee
File metadata and controls
199 lines (100 loc) · 6.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
:: StoryTitle
Choose a Database
:: StoryData
{
"ifid": "D5C9855A-0114-4A45-A516-502A92FBC715",
"format": "SugarCube",
"format-version": "2.30.0",
"start": "Introduction",
"zoom": 1
}
:: Introduction {"position":"900,400","size":"100,100"}
Welcome, Traveller, to Diskworld*!
<img src="story/images/1.jpg" width="450px">
[[Start the adventure]]
* Any resemblance to existing IP is purely coincidental.
:: Start the adventure {"position":"900,525","size":"100,100"}
A courier delivers you a magical bag which stores many things. Perhaps you should already have something in there.
Do you have some data?
[[yes|data-yes]] / [[no|data-no]]
:: data-no {"position":"1050,525","size":"100,100"}
Oh no! Perhaps you should collect some! You can [[return to your journey another time|Start the adventure]].
:: data-yes {"position":"900,650","size":"100,100"}
You look around and spot a tavern. There may be other travelers who wish to join your party.
Do other people need to write to your data? (Yes, this includes users.)
[[yes|edit-yes]] / [[no|edit-no]]
:: edit-no {"position":"1050,650","size":"100,100"}
Will you be frequently be trading from your bag?
Is your data updated frequently?
[[yes|edit-yes]] / [[no|update-no]]
:: edit-yes {"position":"900,800","size":"100,100"}
You arrive at a small shop, the shelves lined with hundreds of bottles and vials. You need the strongest potion, but the seller needs your help finding it.
Can you structure your data well in rows and columns?
[[Yes|structure-yes]] / [[No|structure-no]]
:: explore-no {"position":"1325,825","size":"100,100"}
You said you didn't know what questions to ask!
If you know your wishes, [[ask the genie|question-yes]]!
:: explore-yes {"position":"1325,925","size":"100,100"}
You put the lamp in your pack and continue down the road. After some time you arrive at a watering hole. A friendly looking elephant is drinking, and a dolphin pops its head above the water.
…choose a <a href="https://en.wikipedia.org/wiki/Relational_database">relational DB</a>.
Popular choices: Postgres and MySQL.
:: key-no {"position":"900,1050","size":"100,100"}
You continue your quest and come across a wizard's hut. The wizard requests your assistance understanding the many ways the ingredients in your bag combine in his spells.
Does your data represent networks?
[[Yes|network-yes]] / [[No|network-no]]
:: key-yes {"position":"1050,925","size":"100,100"}
The shopkeeper hands you a key to a magical treasure chest.
You should consider using a <a href="https://en.wikipedia.org/wiki/Key%E2%80%93value_database">key:Value</a> Store.
:: large-no {"position":"1325,650","size":"100,100"}
You might not need a database,
Try ye old archaic formats a long scroll or the sheet of Excel. If they don't work, start the journey again.
Try storing your data in .csv plaintext format, or spreadsheet software of your choice.
For example you could use <a href="https://datacarpentry.github.io/openrefine-socialsci/">Openrefine</a>.
:: media-no {"position":"900,1325","size":"100,100"}
You arrive at a library. It stores thousands of books.
Is your data a lot of text, such as a book or corpus?
[[Yes|text-yes]] / [[No|text-no]]
:: media-yes {"position":"1050,1175","size":"100,100"}
You should probably put the rock down. Leave a marker on your map so that you don't forget where you've left it!
Store files in a directory structure, and put the file paths in a table along with metadata attributes (e. g., <a href="https://en.wikipedia.org/wiki/PostgreSQL">Postgres</a>).
:: network-no {"position":"900,1175","size":"100,100"}
Are you carrying around heavy rocks? Perhaps you are a Gaul.
Is your data media files? (Video, pictures, PDFs, specialised formats like nifti or DICOM 3D medial images)
[[Yes|media-yes]] / [[No|media-no]]
:: network-yes {"position":"1050,1050","size":"100,100"}
The wizard calls his familiar, a large fuzzy spider. It hands you a magical spider web which speeds up the process of cataloguing the spells.
Consider using a <a href="https://en.wikipedia.org/wiki/Graph_database">Graph database</a>.
:: question-no {"position":"1200,925","size":"100,100"}
You nervously ask the genie for more time.
"CERTAINLY," the genie booms. "CONTINUE DOWN THE PATH AND RUB MY LAMP AGAIN WHEN YOU ARE READY".
Do you want to explore your data to answer a more abstract question? (For example, investigating the wellbeing of your students?)
[[Yes|explore-yes]] / [[No|explore-no]]
:: question-yes {"position":"1200,800","size":"100,100"}
You confidently make your wishes and they are instantly granted. The genie gives you a mango and then disappears in a puff of blue smoke!
You should choose a <a href="https://en.wikipedia.org/wiki/Document-oriented_database">document-based DB</a>. Popular choices: MongoDB.
:: search-no {"position":"1050,1475","size":"100,100"}
The librarian laughs. You can't find the password without searching! They hand you a magical spy glass which shows you all the relevant spells.
You probably do want to search! Use <a href="https://en.wikipedia.org/wiki/Full-text_search">Text Search Engine</a>.
:: search-yes {"position":"1200,1325","size":"100,100"}
A magical spy glass rests on a shelf near you. You pick it up and the relevant scrolls appear before you.
Use <a href="https://en.wikipedia.org/wiki/Full-text_search">Text Search Engine</a>
:: structure-no {"position":"900,925","size":"100,100"}
You have become friends with the shopkeeper. Since you frequent the market, they offer you a space in their shop to store your items.
Are you looking for a cache? Or, are your data is simple Key:Values?
[[Yes|key-yes]] / [[No|key-no]]
:: structure-yes {"position":"1075,800","size":"100,100"}
The shopkeeper smiles and hands you a old rusty oil lamp. You take a few paces down the road and suddenly, a ginormous blue figure pops out of the lamp!
"WHAT ARE YOUR WISHES?" the genie booms!
Do you know exactly what question to ask? (For example, how many students have attended your class?)
[[Yes|question-yes]] / [[no|question-no]]
:: text-no {"position":"900,1475","size":"100,100"}
You find a mysterious map in the library. After following it, you arrive at a watering hole, where a friendly looking elephant is drinking and a dolphin pops its head above the water.
Use a <a href="https://en.wikipedia.org/wiki/Relational_database">relational database</a>. Popular choices: <a href="https://en.wikipedia.org/wiki/PostgreSQL">Postgres</a> and <a href="https://en.wikipedia.org/wiki/MySQL">MySQL</a>.
:: text-yes {"position":"1050,1325","size":"100,100"}
The librarian appears and offers you a quest: to seek out a tomb and find the lost scrolls. You need the password to enter the tomb. Perhaps you can find it in one of the library's books.
Do you want to search through your data?
[[Yes|search-yes]] / [[No|search-no]]
:: update-no {"position":"1200,650","size":"100,100"}
Some travelers need caravans because they have so many items. Do you need one?
Is your data large?
[[yes|edit-yes]] / [[no|large-no]]