MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
udonmai
V2EX  ›  MySQL

初步打算写个账户间有简单关系的站,而且希望拿mysql配合redis使用,但是没什么经验,求指教

  •  
  •   udonmai ·
    udonmai · May 1, 2012 · 4246 views
    This topic created in 5129 days ago, the information mentioned may be changed or developed.
    例如twitter有following和following两个list,那么它大概是怎么存储的呢?
    更新更频繁的持久化数据放redis是不是更好?比如在线人数?
    实时消息似乎应该放在redis里,但是如果不想记录消息,在每次任务结束都必须清空消息占的内存?
    类似的两者配合还有PHP和redis的配合,有些什么best practice么?
    4 replies    1970-01-01 08:00:00 +08:00
    udonmai
        1
    udonmai  
    OP
       May 1, 2012
    补充:大家在一开始规划数据库的时候都怎么考虑的呀? 同样的,有什么最佳实践么?
    udonmai
        2
    udonmai  
    OP
       May 1, 2012
    http://www.slideshare.net/iso1600/high-performance-weibo-qcon-beijing-2011-7577912 虽然这里有提到相关的,但是有一定高度了。。。
    huangz
        3
    huangz  
       May 1, 2012
    你贴的那个幻灯主要关注的是平台和性能,应用方面看这个视频比较好: http://www.infoq.com/cn/presentations/tfl-sina-weibo-platform-redis-practice

    Redis 文档本身也有不少应用范例,比如使用 EXPIRE 命令做 navigation session: http://redis.io/commands/expire , APPEND 命令做 time series : http://redis.io/commands/append , BLPOP 做事件通知: http://redis.io/commands/blpop 等等。
    udonmai
        4
    udonmai  
    OP
       May 1, 2012
    @huangz 啊啊啊,huangz! 恩,好的,我看看去~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2953 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.