原创 大量AUTO-INC LOCK 導致的DeadLOCK
原文鏈接:http://steven1981.itpub.net/post/7967/494087 官方文檔關於AUTO_INC鎖說明 今天發現數據庫報檢查到死鎖,而且有大量的回滾。 當時狀態見:< show engine i
原创 Memcache是什麼
Memcache是什麼 Memcache是danga.com的一個項目,最早是爲 LiveJournal 服務的,目前全世界不少人使用這個緩存項目來構建自己大負載的網站,來分擔數據庫的壓力。 它可以應對任意多個連接,使用 非阻塞的網絡
原创 python set 的與或非
def intersect(a, b): """ return the intersection of two lists """return list(set(a) & set(b)) def union(a, b):"""