You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/data-storage/er-model/index.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ tags:
33
33
- diagram of entity types with their attribute types and their relationship types, usually drawn as boxes and lines
34
34
- beware: the diagram is drawn for the abstract types, it really "exists" only for the concrete instances ❗️
35
35
36
-

36
+

37
37
38
38
- can think of entity types as nouns and relationship types as verbs, e.g. person owns car, car is owned by person
39
39
- beware: a relationship label can be read in one direction only, the other direction is obtained by turning the verb into passive voice
@@ -53,15 +53,15 @@ tags:
53
53
- always combines two symbols, the inner component represents the minimum, the outer component represents the maximum, from the point of view of the given entity
54
54
- makes only sense for the following combinations: the symbol `||` means exactly one, `o{` means zero or more, and `|{` means one or more, for cardinality from left entity to right
55
55
56
-

56
+

57
57
58
-

58
+

59
59
60
60
- beware: if wants to be able to version the data, needs to keep the cardinality of a relationship at one and have many duplicated entities with the same content, instead of having a single entity that many otherwise unrelated entities link to, e.g. `Person ||has|| Birthday`, `Person ||has|| Age`, `Person ||has|| Address`, `Person ||has|| Nationality`, instead of `}|has||` or `Person ||has|{ Book` instead of `}|has|{` etc. ⚠️
61
61
62
-

62
+

63
63
64
-

64
+

Copy file name to clipboardexpand all lines: content/data-storage/graph-databases/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ Use attributes otherwise
105
105
Use nodes if wants to connect two more than two entities
106
106
Use relationship otherwise
107
107
108
-
Use fine grained relationships names, checking attributes on target mode is more expensive, e.g. Person located_home Address instead of Person located Address {type: home}
108
+
Use fine grained relationships names, checking attributes on target mode is more expensive, e.g. Person located_home Address instead of Person located Address `{type: home}`
109
109
Eliminates graph travels, faster performance
110
110
Put complex attributes with multiple attributes in own nodes, e.g. Address
Copy file name to clipboardexpand all lines: content/data-storage/traditional-databases/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ tags:
21
21
- each column (field) in the table represents an attribute type of that entity type, e.g. unique identifier (primary key) in first column
22
22
- relationships between entities are implicitly encoded using attributes, "foreign key" attribute contains primary key of entity that is related to
23
23
24
-

24
+

25
25
26
26
- the relationship can be labeled "uses", is usually not labeled since it is always the same
27
27
- the cardinality of a relationship must be at least one, otherwise the attribute would be empty
28
28
- if the cardinality is higher than one, the attribute must be an array, since it can contain multiple instances ❗️
29
29
30
-

30
+

31
31
32
32
- schema-fixed: data must have fixed structure, column of table forces nodes to have the same attribute types, can not add / remove attributes only for some entities without changing other ones
Copy file name to clipboardexpand all lines: content/the-web/http-cache/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,7 @@ tags:
164
164
- beware: if does cache "external" resource risks breakages due to incompatibilities from mixing of new and old versions of interdependent resources ⚠️
165
165
- cache personalised responses at most in private cache, e.g. profile page, etc.
166
166
- beware: never cache personalised responses in public cache, otherwise second client can see response for first ❗️
167
-
- usually caches only responses with certain status codes, e.g. < 500 because server error is not normal
167
+
- usually caches only responses with certain status codes, e.g. < 500 because server error is not normal
168
168
- beware: caching and not caching a resource doesn't correspond to a static / dynamic Web server, e.g. can statically serve a changing resource, can dynamically serve a non-changing resource ❗️
0 commit comments