This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何从 MongoDB 迁移到 MySQL · /mongodb-to-mysql #87
Comments
Q: 我觉得改 uuid 如果只为了审美有点得不偿失。之前改过一次,真是特别的蛋疼,所有关联都要重新建立,一不小心就非常容易错。 A: 保留的话还要搞个 uuid 生成器,pk 都得改成字符串,reference 什么的也得改类型,都很麻烦,除此之外,32字节的 id 其实也会影响速度的。 |
Q:好想知道从MySQL迁移到MongoDB的原因,再迁回来是怎么解决当时的问题的。 A: 迁移到 MongoDB 的时候我还不在这边,也不大清楚具体什么情况,我了解的就是当时它们觉得无 schema 的数据结构更易于开发和字段的修改,但是其实这问题我觉得是不存在的,虽然字段易于修改了,但是每次修改数据结构都要洗数据。 我是觉得当时是为了解决不存在的问题,毕竟我们作为一个 CPU 密集型的服务其实是不太在乎数据库能不能分片,性能高不高的。 |
Q: 配图精美 A: 是,不过这边用的是mysql5.7 支持json 和 array 其实也还可以 |
Q: 首先感谢作者的精彩分享,看了评论,谈下个人的几个想法:
A:
|
喜歡你的blog的介面、還有支援的功能! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
https://draveness.me/mongodb-to-mysql
The text was updated successfully, but these errors were encountered: