1
我正在使用mysql作爲數據庫在php中構建一個web應用程序。Memcached對於有很多選擇的小型數據庫的好處
我正在使用memcached來存儲會話,我想如果我還應該存儲(在另一個memcached實例中)數據庫記錄。
數據庫將是非常小,並在一段時間內更新一次。雖然會有很多選擇,但我們預計會有很高的流量。
對於一個小型數據庫,如果我將記錄存儲在memcached中,或者我應該將它留給mysql緩存並調整數據庫以獲得大量連接(將讚賞用於優化mysql的一些指針),我會受益嗎?
謝謝
內存緩存支持分佈 - http://stackoverflow.com/questions/815041/memcached-vs-apc-which-one - 我應該選擇 – ajreal 2010-11-21 16:14:33
這麼真實,但它的代價是http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcached/(我不瞭解你,但我是一個速度怪胎,如果我在我的負載平衡的網絡服務器上覆制) – 2010-11-21 16:21:31
取決於您如何看待它,在APC緩存的數據/代碼僅適用於執行APC的服務器。在使用memcache時,只執行一次,存儲值並在多個服務器上重複使用 – ajreal 2010-11-21 16:39:51