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
xxxxxxxxxx
想用就用 JSON in PostgreSQL / 古哥(古永忠)
歡迎來到 Modern Web 2020 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →共筆入口:https://hackmd.io/@ModernWeb/2020
手機版請點選上方 按鈕展開議程列表。
簡報下載
Trends of JSON
近年來 json 成為 api 資料交換主流格式,在 2013 年跟 xml 黃金交叉
JSON in RDB 優勢
重點在於資料庫設計透過這些功能,可以符合人性、善用資料,而不是選邊站。
JSON in PostgreSQL
需要使用到 JSON 建議使用 PostgreSQL 12 以上的版本,
JSONPATH要到Version 12才支援。
SELECT '("PostgreSQL":12}'::json;
JSON想用就用,不想用就不用
JOIN
View 表格, 可以降低開發的門檻
REPORT 統計資訊部分
FDW
JSON and JSONB
Index
GIN index
jsonb_ops
andjson_path_ops
jsonb_ops
jsonb_path_ops
Index on Expression
Partition table
單機效能還可以
(Percona Live Conferences)
效能不會是決定性因素
JSONB: few more stories about the performance

不推薦的地方
結論
不應該期待因此而取代其他資料庫
而是你因此有了更多的選擇
tags:
MW20
架構與設計
PostgreSQL