我正在寻找一种为 MongoDB 或 CouchDB 等数据库自动迁移架构的方法.
I'm looking a way to automate schema migration for such databases like MongoDB or CouchDB.
这个工具最好是用python写的,其他任何语言都可以.
Preferably, this instument should be written in python, but any other language is ok.
由于 nosql 数据库可以包含大量数据,因此您无法在常规 rdbms 中迁移它.实际上,一旦您的数据超过某个大小阈值,您就无法为 rdbms 执行此操作.让您的网站停工一天以将字段添加到现有表是不切实际的,因此使用 rdbms 您最终会做丑陋的补丁,例如仅为该字段添加新表并进行连接以获取数据.在 nosql 世界中你可以做几件事.
Since a nosql database can contain huge amounts of data you can not migrate it in the regular rdbms sence. Actually you can't do it for rdbms as well as soon as your data passes some size threshold. It is impractical to bring your site down for a day to add a field to an existing table, and so with rdbms you end up doing ugly patches like adding new tables just for the field and doing joins to get to the data. In nosql world you can do several things.
这篇关于是否有任何用于 NoSQL 数据库架构迁移的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
python:不同包下同名的两个模块和类python: Two modules and classes with the same name under different packages(python:不同包下同名的两个模块和类)
配置 Python 以使用站点包的其他位置Configuring Python to use additional locations for site-packages(配置 Python 以使用站点包的其他位置)
如何在不重复导入顶级名称的情况下构造python包How to structure python packages without repeating top level name for import(如何在不重复导入顶级名称的情况下构造python包)
在 OpenShift 上安装 python 包Install python packages on OpenShift(在 OpenShift 上安装 python 包)
如何刷新 sys.path?How to refresh sys.path?(如何刷新 sys.path?)
分发带有已编译动态共享库的 Python 包Distribute a Python package with a compiled dynamic shared library(分发带有已编译动态共享库的 Python 包)