Skip to content

Commit fe79abc

Browse files
Wiki change, and formating change
1 parent a22e23b commit fe79abc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Development Application Settings/Red Gate/SQL Prompt/Styles/Kevin Martin-b9530d2c-850d-46b0-b8b4-51a5899a376e.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"id": "b9530d2c-850d-46b0-b8b4-51a5899a376e",
44
"name": "Kevin Martin"
55
},
6-
"whitespace": {
7-
"wrapLinesLongerThan": 150
8-
},
96
"lists": {
107
"placeFirstItemOnNewLine": "always",
118
"alignSubsequentItemsWithFirstItem": false,
@@ -18,7 +15,8 @@
1815
"parentheses": {
1916
"parenthesisStyle": "expandedSplit",
2017
"indentParenthesesContents": true,
21-
"collapseParenthesesShorterThan": 35
18+
"collapseShortParenthesisContents": true,
19+
"collapseParenthesesShorterThan": 120
2220
},
2321
"casing": {
2422
"reservedKeywords": "uppercase",
@@ -73,7 +71,7 @@
7371
},
7472
"insertStatements": {
7573
"columns": {
76-
"parenthesisStyle": "compactSimple",
74+
"parenthesisStyle": "expandedSplit",
7775
"placeSubsequentColumnsOnNewLines": "ifLongerThanMaxLineLength"
7876
},
7977
"values": {

docs/findings/TableConventions.md

+2
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ A normalize table design like addresses and phone numbers in separate tables all
625625

626626
You should always normalize the database schema unless you have a really good reason not to. Denormalizing has been performed in the past with the saying "Normalize until it hurts, denormalize until it works". Denormalization almost always leads to eventual issues. Denormalization complicates updates, deletes & inserts making the database difficult to modify. We have tools like indexes or materialized views and covering indexes to remediate performance issues. There are query rewriting techniques that can make queries more performant.
627627

628+
A legally binding entity like a contract that will be created as an immutable snapshot can contain redundant data. This helps with possible future reprinting of documents. Consider using an auditable append-only Ledger table.
629+
628630
If data is denormalized there are methods of keeping denormalized or duplicated data values correct. The data should be strongly consistency instead of eventually consistent.
629631

630632
Strongly consistent is with the use of transactions that will not allow the data to be out-of-sync like in stored procedure, triggers are the next best option, but triggers have performance issues.

0 commit comments

Comments
 (0)