MongoDB 有哪些版本控制工具可用

编程入门 行业动态 更新时间:2024-10-12 12:22:38
本文介绍了MongoDB 有哪些版本控制工具可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我计划将基于 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 Collections

Starting 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.0

This 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 有哪些版本控制工具可用

本文发布于:2023-11-05 18:25:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1561543.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   工具   有哪些   MongoDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!