Skip to content

Commit b21def6

Browse files
committed
improve
1 parent 54981f3 commit b21def6

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

201704/20170417_01.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,16 @@ postgres=# explain (analyze,verbose,timing,costs,buffers) select * from sel_tbl(
776776
```
777777
778778
8、将schemaless进行到底,[《PostgreSQL schemaless 的实现(类mongodb collection)》](../201705/20170511_01.md)
779+
780+
### schemaless优势小结
781+
782+
schemaless解决了HEAP PAGE IO放大的问题(由于每个传感器都活跃,所以查一个传感器的ID的若干条记录,实际上需要扫描与返回记录同样多的HEAP PAGE)。使用schemaless,将传感器ID数据重新分布存储,直接解决了IO放大问题。
783+
784+
使用BRIN索引,则解决了BTREE索引大的问题(当然你可以继续使用BTREE索引)。
785+
786+
![pic](20170417_01_pic_003.jpg)
787+
788+
![pic](20170417_01_pic_004.jpg)
779789

780790
### 分钟级数据,查询压测
781791
与秒级数据的查询需求类似,忽略测试。

201704/20170417_01_pic_003.jpg

146 KB
Loading

201704/20170417_01_pic_004.jpg

243 KB
Loading

0 commit comments

Comments
 (0)