# 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/ddfwsxq
美團面試:百億級分片,如何設計基因算法?**
分庫分表背景知識--------問題 1:爲什麼分庫分表?大家都知道,當一個表(比如訂單表) 達到 500 萬條或 2GB 時,需要考慮水平分表。爲啥? 讀寫併發高場景,單服務器單一數據庫 CPU、內存、網絡 IO 壓力大。所以,需要分庫,一個庫拆成多個庫。同時,數據量大,單表存不下,需要分表,一張表拆分成多個表。總之,分庫分表的原因是:數據量大,選分表; 併發高,選分庫; 海量存儲 ⌘ Read more