V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
default7
V2EX  ›  MySQL

sphinx 应用的几个疑惑, rt 实时索引

  •  
  •   default7 · 2019-02-19 13:22:31 +08:00 · 2929 次点击
    这是一个创建于 1864 天前的主题,其中的信息可能已经有所发展或是发生改变。
    RT 索引是在什么情况才会使用呢
    比如网站注册排除同名,用户已有 100 万,安装好 sphinx 后启动`indexer --all --rotate`,已在 MYSQL 的用户的用户名都保存到了 sphinx 的 type=plain 索引中

    1 )那接下来新注册的用户,他们的 username 是需要隔一段时间执行那个`indexer --all --rotate`去更新到这个 type=plain 的索引中,还是说写入到 mysql 的同时,将用户名插入到 sphinx 的一个 type=rt 的索引中?是否是这样

    2 )如果是这样,这个 rt 索引的数据是否需要删除,什么时候进行删除?还是可以一直保存在这个里面?

    3 )如果上面的操作是对的,那么同时存在两个索引一个 type=plain,一个 type=rt,那如何去搜搜这个用户名是否存在呢?


    求指点
    1 条回复    2019-03-03 09:00:27 +08:00
    lookyou08
        1
    lookyou08  
       2019-03-03 09:00:27 +08:00 via iPhone
    rt 好像是要定时的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2963 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.