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

TiDB 加入了 json 类型,但是没法用索引

  •  
  •   gouchaoer · May 21, 2017 via Android · 5675 views
    This topic created in 3465 days ago, the information mentioned may be changed or developed.
    https://github.com/pingcap/tidb/commit/1e4bf4775c284ec009189af71419fd59ed1193c3

    加入 json 简直就是杀手级 feature,不过没法给 json 加索引似乎没啥用处。。。

    ```
    JSON codec uses MySQL 5.7 compatible format, which doesn't support use JSON field as key or index. We will limit this in tidb later.
    ```

    如果可以给 json 加索引,本身 tikv 就是多实例的,那 mongodb 就很鸡肋了
    9 replies  •  2017-06-17 20:16:17 +08:00
    EPr2hh6LADQWqRVH
    EPr2hh6LADQWqRVH
    May 21, 2017 via Android
    1
    pg 能给 json 加索引很久了,鸡肋
    ipom
    ipom
    May 21, 2017
    2
    我们用 MySQL 5.7 的 json 列,主要是储存一些小规模的数据,用做冗余数据。一般一次检索不会超过 10 万条,主要还是以普通的数据类型为主,结合使用,效果很好。
    比如这几天在弄的通用表单及提交数据相关的数据库表,如果没有 json 列的支持,做起来会很烦。
    wwqgtxx
    wwqgtxx
    May 21, 2017 via iPhone
    3
    mongodb 能做到数据库市场第五这么长时间,怎么可能一个别的数据库支持了 json 就淘汰了
    shenli3514
    shenli3514
    Jun 3, 2017
    4
    支持 Json 类型是第一步,接下来会支持索引以及 X Protocol
    c4pt0r
    c4pt0r
    Jun 8, 2017
    5
    最终目标是支持 mysql 8 的 document store
    gouchaoer
    gouchaoer
    OP
    Jun 8, 2017
    6
    @c4pt0r 你们的工作太漂亮了,虽然流量小用不到。。。选择兼容 mysql,采取类似 codis 的非 p2p 的集群方案,这 2 点非常欣赏
    c4pt0r
    c4pt0r
    Jun 8, 2017
    7
    谢谢,希望有机会 tidb 能够帮到你~ :)
    g65537
    g65537
    Jun 17, 2017
    8
    @c4pt0r 有大概时间吗?
    gouchaoer
    gouchaoer
    OP
    Jun 17, 2017 via Android
    9
    @g65537 php 大会 pingcap 放出的 ppt 说 json 会在今年 9 月完成,你可以去下 ppt 看看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5119 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:45 · PVG 10:45 · LAX 18:45 · JFK 21:45
    ♥ Do have faith in what you're doing.