MongoDB 是否提供转换为其他(JSON)格式的工具?

发布于 2024-12-14 12:21:58 字数 240 浏览 1 评论 0原文

任务很简单。我们将开发一个中间层,它将从某处读取 JSON feed 并将其按原样缓存在 MongoDB 上。然后,它将以不同的 JSON 格式提供该数据。

我想知道 MongoDB 是否具有内置功能来进行转换本身。如果没有,中层将不得不这样做。

那么,有什么好的工具可以完成这项工作吗? Spring Batch 可以做到这一点,但可能有点矫枉过正。此外,此时,数据将即时转换,除非这会导致速度显着减慢。

提前致谢。

The task is simple. We will develop a mid-tier layer that will read a JSON feed from somewhere and cache it on MongoDB as is. It will then service this data in a different JSON format.

I'm wondering if MongoDB has built in capabilities to make the transformation itself. If not, the mid-tier will have to do it.

In that case, are there any good tools for the job? Spring Batch can do it but it might be overkill. Also, at this point, the data will be transformed on the fly, unless this causes significant slowdowns.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风轻花落早 2024-12-21 12:21:58

不 - Mongodb 只是一个数据存储。进去的就是出来的。如果您只是想重组数据,那么这在您的应用程序代码中应该是相当简单的。

Nope - Mongodb is just a data store. What goes in is what comes out. If youre just looking to restructure the data, that should be fairly trivial in your app code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文