简体   繁体   English

如何在 mysql shell JavaScript 模式下更改隔离级别?

[英]How to change isolation level in mysql shell JavaScript mode?

I was learning MySQL Document store.我正在学习 MySQL 文档存储。 And I learnt that the read isolation actually has different isolation levels in the document store, but I don't know how to set the transaction isolation in MySQL shell in JS mode.而且我了解到读隔离在文档存储中其实有不同的隔离级别,但是我不知道在JS模式下MySQL shell中如何设置事务隔离。

I use JS mode because the tutorial in modify collections is in JS code.我使用 JS 模式是因为修改集合中的教程是在 JS 代码中。

Please help me with this, is there a way to do this?请帮我解决这个问题,有没有办法做到这一点?

Thank you.谢谢你。

I just found out when in MySQL shell, the session is global which means the isolation level is the same no matter in js or SQL mode.我刚刚发现在 MySQL shell 中,会话是全局的,这意味着无论在 js 还是 SQL 模式下,隔离级别都是相同的。 So it is ok to set isolation level in SQL mode and switch to js mode所以可以在SQL模式下设置隔离级别,切换到js模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM