Author: Ma Yingle

A member of the R&D team of Aikesheng, responsible for the testing of mysql middleware. I am a testing technology enthusiast, welcome everyone to try the new dble function~

Source of this article: original submission

* Produced by the Aikesheng open source community, original content is not allowed to be used without authorization, please contact the editor and indicate the source for reprinting.

One, dble introduction

dble is Shanghai Aikesheng Information Technology Co., Ltd. a highly scalable distributed middleware based on mysql. It has the following advantages:

  • Data horizontal split

    As your business grows, you can use dble to replace the original single MySQL instance.

  • compatible with Mysql

    It is compatible with the MySQL protocol. In most cases, you can replace MySQL with it to provide new storage for your application without changing any code.

  • high availability

    The dble server can be used as a cluster, and the business will not be affected by a single node failure.

  • SQL support

    Supports SQL 92 standard and MySQL dialect. We support complex SQL queries, such as group by, order by, distinct, join, union, sub-query, etc.

  • Complex query optimization

    Optimize complex queries, including but not limited to global table join shard tables, ER relational tables, sub-queries, simplified selection items, etc.

  • Distributed transaction support

    Distributed transactions using two-phase commit. You can choose normal mode for performance or use XA mode for data security. Of course, the XA mode depends on the XA Transaction of MySQL-5.7, the high availability of MySQL nodes and the reliability of data.

Project address: https://github.com/actiontech/dble

2. dble introduced pure read-write separation function in version 3.20.10.0

pure read-write separation function which is independent of the sub-database and sub-table business function in Release Notes , and made further improvements in the just released version 3.21.02.0~

3. Implicit submission support in dble read-write separation

No.Sql that triggers implicit commitDoes it support
1ALTER EVENT teststand by
2ALTER FUNCTION teststand by
3ALTER PROCEDURE teststand by
4ALTER SERVER teststand by
5ALTER TABLE teststand by
6ALTER VIEW teststand by
7CREATE DATABASE teststand by
8CREATE EVENT teststand by
9CREATE FUNCTION teststand by
10CREATE INDEX teststand by
11CREATE PROCEDURE teststand by
12CREATE ROLE testSupport (MySQL8.0)
13CREATE SERVER teststand by
14CREATE SPATIAL REFERENCE SYSTEMSupport (MySQL8.0)
15CREATE TABLE teststand by
16CREATE TRIGGER teststand by
17CREATE VIEW teststand by
18DROP DATABASE teststand by
19DROP EVENT teststand by
20DROP FUNCTION teststand by
21DROP INDEX teststand by
22DROP PROCEDURE teststand by
23DROP ROLE testSupport (MySQL8.0)
24DROP SERVER teststand by
25DROP SPATIAL REFERENCE SYSTEMSupport (MySQL8.0)
26DROP TABLE teststand by
27DROP TRIGGER teststand by
28DROP VIEW teststand by
29INSTALL PLUGIN teststand by
30RENAME TABLE teststand by
31TRUNCATE TABLE teststand by
32UNINSTALL PLUGINstand by
33ALTER USER teststand by
34CREATE USER teststand by
35DROP USER teststand by
36GRANT teststand by
37RENAME USER teststand by
38REVOKE teststand by
39SET PASSWORDNot supported (limited by druid)
40BEGINstand by
41LOCK TABLES teststand by
42START TRANSACTION teststand by
43LOAD DATA testnot support
44SET autocommit = 1stand by
45ANALYZE TABLE testnot support
46CACHE INDEX testnot support
47CHECK TABLE testnot support
48FLUSHnot support
49LOAD INDEX INTO CACHEnot support
50OPTIMIZE TABLE testnot support
51REPAIR TABLE testnot support
52RESET testnot support
53START SLAVE testnot support
54STOP SLAVEnot support
55RESET SLAVEnot support
56CHANGE MASTER TOnot support

爱可生开源社区
426 声望207 粉丝

成立于 2017 年,以开源高质量的运维工具、日常分享技术干货内容、持续的全国性的社区活动为社区己任;目前开源的产品有:SQL审核工具 SQLE,分布式中间件 DBLE、数据传输组件DTLE。