Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Draveness
@Draveness
Member
NO. 25879 / 2016-04-05

北京
1 Topics / 16 Replies
11 Followers
0 Following
0 Favorites
GitHub Public Repos
  • analyze 8109

    Draven's Blog

  • DKNightVersion 3550

    Manage Colors, Integrate Night/Multiple Themes. (Unmaintained)

  • DKChainableAnimationKit 1894

    A DSL to make animation easy on iOS with Swift.

  • NightNight 776

    Elegant way to integrate night mode to swift projects

  • Typeset 452

    Deal with AttributedString efficiently

  • RbSwift 321

    Extensions for Swift with hundreds of handy methods.

  • go-internal 282

    《Go 语言设计与实现》示例代码

  • blog-comments 142

    面向信仰编程

  • proxier 110

    A better approach to expose application in Kubernetes.

  • linux-archive 91

    Linux archive for studying the process scheduler. 调度系统设计精要 http://draveness.me/system-design-sche...

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 如何从 MongoDB 迁移到 MySQL at November 20, 2017

    sketch

  • validates :title, presence: true 中的 presence 是方法吗? at October 27, 2017

    validates 是方法,后面的都是参数

  • 如何从 MongoDB 迁移到 MySQL at October 27, 2017

    嗯,不过要换成 pg 不就是另一件事情了么,虽然都是 RDBMS 😂

  • 如何从 MongoDB 迁移到 MySQL at October 25, 2017

    保留的话还要搞个 uuid 生成器,pk 都得改成字符串,reference 什么的也得改类型,都很麻烦,除此之外,32 字节的 id 其实也会影响速度的。

    想要完全摆脱历史遗留问题,能一次做了就都做了吧,而且只要这个迁移过程不是手动的就不容易出错,自动化的脚本能避免人搞出的很多问题,只要停机时间可以接受,还是都改了比较好

  • 如何从 MongoDB 迁移到 MySQL at October 25, 2017

    Sketch 画的

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    👍

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    对,还是选择合适的工具,没必要全盘否定 MongoDB

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    sketch

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    是的,我改下。。

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    确实有问题,改了

  • 如何从 MongoDB 迁移到 MySQL at October 24, 2017

    是,不过这边用的是 mysql5.7 支持 json 和 array 其实也还可以

  • 如何从 MongoDB 迁移到 MySQL at October 23, 2017

    最大的原因还是因为 MongoDB 有一张设计的不是特别好的表,单表数据量就上百万了,而且设计的时候将这张表设计为存储通用数据,里面存了各种来自不同业务的不同类型的数据,都是复杂的数据结构,如果整张表拆分的话,可能数量级就上千万了,整个迁移过程是没办法接受的,所以算是个历史遗留问题吧。。。

  • 如何从 MongoDB 迁移到 MySQL at October 23, 2017

    是这样的

  • 如何从 MongoDB 迁移到 MySQL at October 23, 2017

    @qinix [捂脸]

  • 如何从 MongoDB 迁移到 MySQL at October 23, 2017

    @hooopo 对了,当时还有一个问题,因为要做数据分析,MongoDB 可以直接跑 js 脚本,所以迁移到了 MongoDB,但是其实数据分析的需求并不多,目前项目里同时存在了 mongo 和 mysql,mongo 用来做数据分析,mysql 存业务数据

  • 如何从 MongoDB 迁移到 MySQL at October 23, 2017

    @hooopo 迁移到 MongoDB 的时候我还不在这边,也不大清楚具体什么情况,我了解的就是当时它们觉得无 schema 的数据结构更易于开发和字段的修改,但是其实这问题我觉得是不存在的,虽然字段易于修改了,但是每次修改数据结构都要洗数据。

    我是觉得当时是为了解决不存在的问题,毕竟我们作为一个 CPU 密集型的服务其实是不太在乎数据库能不能分片,性能高不高的。

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English