• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Renco
V2EX  ›  程序员

MySQL 使用了 sharding 做了分表,该怎么迁移到 ES 中, ES 怎么保证查询的时候数据隔离。

  •  
  •   Renco · Nov 25, 2020 · 2055 views
    This topic created in 2007 days ago, the information mentioned may be changed or developed.

    每个分表单独对应一个独立索引的方式是否可行.

    1 replies    2020-11-26 09:30:05 +08:00
    itsql
        1
    itsql  
       Nov 26, 2020
    不可行,分 index 这样对 ES 的查询性能更差,事务较强的读写还是要数据库中完成,然后再同步到 ES,ES 只做数据量大的查询。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 05:44 · PVG 13:44 · LAX 22:44 · JFK 01:44
    ♥ Do have faith in what you're doing.