Atlas 分布式版重磅来袭!

时间:2025-11-04 19:28:03来源:极客码头作者:域名
Atlas 分布式版重磅来袭!
复制mysql> begin;  Query OK,布式版重磅袭 0 rows affected (0.00 sec)  mysql> insert into sharding_test(id, name, age) values(1, test, 0);  Query OK, 1 row affected (0.00 sec)  mysql> insert into sharding_test(id, name, age) values(1500, test, 0);  ERROR 1179 (sqlst): Proxy Warning - sharding dbgroup is in trans, transaction will not work across multi dbgroup  mysql> /*master*/select * from sharding_test where id < 1000;  +----+------+------+----------+----------+  | id | name | age | birthday | nickname |  +----+------+------+----------+----------+  | 1 | test | 0 | NULL | NULL |  +----+------+------+----------+----------+  1 row in set (0.00 sec)  mysql> /*master*/select * from sharding_test;  ERROR 1179 (sqlst): Proxy Warning - sharding dbgroup is in trans, transaction will not work across multi dbgroup  mysql> commit;  Query OK, 0 rows affected (0.00 sec)  mysql> /*master*/select * from sharding_test;  +----+------+------+----------+----------+  | id | name | age | birthday | nickname |  +----+------+------+----------+----------+  | 1 | test | 0 | NULL | NULL |  +----+------+------+----------+----------+  1 row in set (0.00 sec)  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.
相关内容