# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/neki6iq
使用查詢分離後從 20s 優化到 500ms
大家好,我是不才陳某~冷熱分離固然是一個性價比高的解決方案,但也並不是銀彈,仍然有諸多限制,比如:查詢冷數據慢 業務無法修改冷數據 冷數據多到一定程度系統依舊扛不住 此時如果需要解決以上問題,可以採用另外一種方案:使用 查詢分離 優化業務主表數據大查詢緩慢的問題什麼是查詢分離?--------查詢分離從字面上來說非常容易理解,其實就是在寫數據時保存一個備份數據到另外的存儲系統,在 ⌘ Read more