Git Product home page Git Product logo

Comments (8)

shenli avatar shenli commented on July 18, 2024

@Jessppp 感谢关注
对于插入请求不会影响,对于读取请求,在某些情况下可能会造成一定的影响。我们计划提供 SQL 优先级的功能,会在近期完成。

from docs-cn.

Jessppp avatar Jessppp commented on July 18, 2024

是否考虑加入只读只写的实例角色?实际生产环境中这种需求应该是挺大的。

from docs-cn.

shenli avatar shenli commented on July 18, 2024

@Jessppp 做复杂sql计算的时候,tikv、tidb都会参与,不过主要的计算任务会落在tidb上,你可以单独部署几个tidb-server,用来承载复杂计算任务。

from docs-cn.

Jessppp avatar Jessppp commented on July 18, 2024

我可以理解为,多个tidb就相当于是多个mysql的实例吗?比如我一个tidb被一条很复杂的sql卡在那了,但是其他用户的查询连接的是另外一个tidb实例,他们之间是不会相互影响的?

from docs-cn.

shenli avatar shenli commented on July 18, 2024

tidb是无状态的sql层,tikv则存储真正的数据。对于一条查询语句来说,首先tidb会去tikv获取数据(同时会做一些简单的filter、聚合、limit、topn这类操作),然后再tidb内部做各种复杂的计算。所以多个tidb同时读取tikv中的数据的时候,可能会相互影响,但是在不同的tidb内存做计算的时候,不会相互影响。
另外 tidb 自己也有binlog,也可以将数据实时同步到另外一个tidb或者mysql作为只读slave。

简单来说,mysql能做的 tidb 也能做(如通过binlog做主从同步以实现读写分离),但是tidb能做的,mysql做不了(启动多个tidb-sever,做业务分离)

from docs-cn.

Jessppp avatar Jessppp commented on July 18, 2024

tidb做主从同步的文档有吗?

from docs-cn.

shenli avatar shenli commented on July 18, 2024

这个目前有内部工具和文档,如果感兴趣 可以提供给贵司使用

from docs-cn.

Jessppp avatar Jessppp commented on July 18, 2024

那真是太感谢了,我发您邮件。

from docs-cn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.