歡迎來到 Modern Web 2020 共筆
共筆入口:https://hackmd.io/@ModernWeb/2020
手機版請點選上方 按鈕展開議程列表。
共筆從這開始
近年來 json 成為 api 資料交換主流格式,在 2013 年跟 xml 黃金交叉
正規化 | 反正規化 |
---|---|
條件檢核 | 減少 JOIN |
統計查詢 | 快速開發 |
資料效能 | 彈性資料源輸入 |
Ex. MongoDB | Ex. JSON |
重點在於資料庫設計透過這些功能,可以符合人性、善用資料,而不是選邊站。
需要使用到 JSON 建議使用 PostgreSQL 12 以上的版本,
JSONPATH要到Version 12才支援。
SELECT '("PostgreSQL":12}'::json;
JOIN
View 表格, 可以降低開發的門檻
REPORT 統計資訊部分
FDW
GIN index
jsonb_ops
and json_path_ops
Name | Data Type | Operators |
---|---|---|
jsonb_ops |
jsonb | ? ?& ? |
jsonb_path_ops |
jsonb | @> @? @@ |
Index on Expression
JSONB: few more stories about the performance
確定很常使用的欄位
就提出來使用基本欄位型別處理
不應該期待因此而取代其他資料庫
而是你因此有了更多的選擇
MW20
架構與設計
PostgreSQL
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing