vitess-gh/data/test/vtexplain/multi-output/updatesharded-output.txt

59 строки
2.9 KiB
Plaintext

----------------------------------------------------------------------
update user set nickname='alice' where id=1
1 ks_sharded/-40: begin
1 ks_sharded/-40: update user set nickname = 'alice' where id in (1) /* vtgate:: keyspace_id:166b40b44aba4bd6 */
1 ks_sharded/-40: commit
----------------------------------------------------------------------
update user set nickname='alice' where name='alice'
1 ks_sharded/40-80: begin
1 ks_sharded/40-80: select user_id from name_user_map where name = 'alice' limit 10001
2 ks_sharded/-40: begin
2 ks_sharded/-40: select id from user where name = 'alice' limit 10001 for update /* vtgate:: keyspace_id:166b40b44aba4bd6 */
2 ks_sharded/-40: update user set nickname = 'alice' where id in (1) /* vtgate:: keyspace_id:166b40b44aba4bd6 */
3 ks_sharded/40-80: commit
4 ks_sharded/-40: commit
----------------------------------------------------------------------
update user set pet='fido' where id=1
1 ks_sharded/-40: begin
1 ks_sharded/-40: update user set pet = 'fido' where id in (1) /* vtgate:: keyspace_id:166b40b44aba4bd6 */
1 ks_sharded/-40: commit
----------------------------------------------------------------------
update user set name='alicia' where id=1
1 ks_sharded/-40: begin
1 ks_sharded/-40: select name from user where id = 1 limit 10001 for update
2 ks_sharded/80-c0: begin
2 ks_sharded/80-c0: delete from name_user_map where (name = 'name_val_1' and user_id = 1) /* vtgate:: keyspace_id:a6e89b54b129c33051b76db219595660 */
3 ks_sharded/c0-: begin
3 ks_sharded/c0-: insert into name_user_map(name, user_id) values ('alicia', 1) /* vtgate:: keyspace_id:e2821261367fbee90bb5cf72955146c6 */
4 ks_sharded/-40: update user set name = 'alicia' where id in (1) /* vtgate:: keyspace_id:166b40b44aba4bd6 */
5 ks_sharded/-40: commit
6 ks_sharded/80-c0: commit
7 ks_sharded/c0-: commit
----------------------------------------------------------------------
update user set name='alicia' where name='alice'
1 ks_sharded/40-80: begin
1 ks_sharded/40-80: select user_id from name_user_map where name = 'alice' limit 10001
2 ks_sharded/-40: begin
2 ks_sharded/-40: select name from user where name = 'alice' limit 10001 for update
3 ks_sharded/80-c0: begin
3 ks_sharded/80-c0: delete from name_user_map where (name = 'name_val_1' and user_id = 1) /* vtgate:: keyspace_id:a6e89b54b129c33051b76db219595660 */
4 ks_sharded/c0-: begin
4 ks_sharded/c0-: insert into name_user_map(name, user_id) values ('alicia', 1) /* vtgate:: keyspace_id:e2821261367fbee90bb5cf72955146c6 */
5 ks_sharded/-40: select id from user where name = 'alice' limit 10001 for update /* vtgate:: keyspace_id:166b40b44aba4bd6 */
5 ks_sharded/-40: update user set name = 'alicia' where id in (1) /* vtgate:: keyspace_id:166b40b44aba4bd6 */
6 ks_sharded/40-80: commit
7 ks_sharded/-40: commit
8 ks_sharded/80-c0: commit
9 ks_sharded/c0-: commit
----------------------------------------------------------------------