Performance compare:

Tim  http://hi.baidu.com/jabber/blog/category/Memcached

memcached 1.2.0
MySQL 5.0.26 with MEMORY (heap) engine

记录数:50万~100万条

单机,client 从另外一台机访问
数据:单条 0.1K左右

memcached set/get 15,000 / s
MySQL memory table: insert/select 5,000 / s

结论:
memcached 读写速度是 mysql memory table 3倍左右

优点:
MySQL: 适合对 cache 数据进行Select条件查询。
MemCached: 可以设置 exptime (超时时间),无需自己管理

相关文章:

  • 2022-01-01
  • 2021-11-28
  • 2021-11-12
  • 2021-12-20
  • 2021-11-04
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2021-12-21
  • 2021-08-03
  • 2022-12-23
  • 2021-11-10
  • 2021-07-04
  • 2021-08-23
  • 2021-06-06
相关资源
相似解决方案