我计划将基于 mongodb 的迁移工具集成到我的 Spring Boot 应用程序中,该应用程序在项目中具有 spring-data 依赖项.我发现主要的两个库 1) Mongobee 2) Mongock.
我需要一些反馈,我应该选择哪一个?提前致谢!
解决方案mongobee 从 MongoDB 4.2 版开始与 Mongo Java 驱动从 4 版开始不兼容.具体来说,mongobee 使用 system.indexes 集合,在 MongoDB 4.2 中被删除(mongobee#104).它还使用 Mongo Java 库的第 3 版,这与这些库的第 4 版中所做的更改不兼容 (mongobee#115).此外,从表面上看,mongobee 自 2018 年以来已被废弃.
MongoDB:MongoDB 4.2 中的兼容性变化删除system.indexes 和system.namespaces 集合从 4.2 版开始,MongoDB 删除了 system.indexes 和 system.namespaces 集合(自 v3.0 起已弃用).
Mongo JVM 驱动程序:最新消息4.0 的新变化
此版本未添加任何新功能,但作为主要版本,包含可能会影响您的应用程序的重大更改.请咨询升级指南列举了重大变化.
另一方面,Mongock 得到积极维护并支持最新的 MongoDB 版本和 Java 库.
因此,在几乎所有实际情况下,Mongock 都将成为更好的库选择.
I'm planning to integrate mongodb based migration tool in my spring boot application which is having spring-data dependency in project. I found main two libraries 1) Mongobee 2) Mongock.
I need some feedback which one should i choose ? Thanks in advance!
解决方案mongobee has incompatibilities starting with version 4.2 of MongoDB, and versions of the Mongo Java driver starting with version 4. Specifically, mongobee uses the system.indexes collection, which was removed in MongoDB 4.2 (mongobee#104). It also uses version 3 of the Mongo Java libraries, which is incompatible with changes made in version 4 of those libraries (mongobee#115). Additionally, by all appearances, mongobee has been abandoned since 2018.
MongoDB: Compatibility Changes in MongoDB 4.2 Removal of system.indexes and system.namespaces CollectionsStarting in version 4.2, MongoDB removes the system.indexes and system.namespaces collections (deprecated since v3.0).
Mongo JVM Drivers: What’s New
What's new in 4.0This release adds no new features but, as a major release, contains breaking changes that may affect your application. Please consult the Upgrading Guide for an enumeration of the breaking changes.
Mongock, on the other hand, is actively maintained and supports the newest MongoDB versions and Java libraries.
Mongock is therefore going to be the better choice of libraries in virtually all practical situations.
更多推荐
MongoDB 有哪些版本控制工具可用
发布评论