# 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/c75sgfa
整理常見的千萬級數據分表的遷移方案**
在互聯網業務中我們會遇到千萬級別數據量的表需要拆分成多表存儲,或者底層的數據存儲介質的變更等原因都需要做數據的遷移,今天我們來聊聊數據的遷移方案。 1、數據的遷移策略 假設現在又一張千萬級別的訂單明細表,我們需要拆分成多張子表存儲,那麼我們按照什麼規則來將訂單的明細放入子表中呢? (1)哈希取模方式 訂單明細中可以選擇訂單 id 作爲 key 進行哈希取模來確定數據應該 ⌘ Read more