对于Snowflake prod-> dev计划的克隆,什么是处理自定义规则的好方法?

发布于 2025-02-09 22:09:43 字数 1455 浏览 1 评论 0原文

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

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

发布评论

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

评论(1

时光无声 2025-02-16 22:09:43

我意识到这并不是您问题的答案,但我绝对不会做您建议做的事情 - 这不是管理您的SDLC的方法(我认为),尤其是如果您的数据包含任何PII信息,请复制数据从产品到非生产数据库,都有各种监管和审计问题的风险。

我将进行以下操作:

  1. 作为一次性练习,创建为您的“标准”环境构建对象所需的脚本 - 大概将其从当前的产品环境中基于此脚本
  2. 的存储库中

来管理这些脚本,以在版本控制 使用这些脚本来构建任何环境,您将通过浏览标准开发,测试,产品SDLC来更改它们。

就数据填充这些环境而言,如果您确实需要类似生产的数据(和数据的生产量),则应构建将数据从prod复制到所选目标环境的例程,并在必要时匿名数据。这些脚本应在您的代码存储库中进行管理,作为SDLC的一部分,应需要为任何新/更改表构建/更新脚本

I realise this is not really an answer to your question but I would absolutely not do what you are proposing to do - it's not the way to manage your SDLC (in my opinion) and, especially if your data contains any PII information, copying data from a Prod to a non-Prod database runs the risk of all sorts of regulatory and audit issues.

I would do the following:

  1. As a one-off exercise, create the scripts necessary to build the objects for your "standard" environment - presumably basing this off your current Prod environment
  2. Manage these scripts in a version-controlled repository e.g. Git

You can then use these scripts to build any environment and you would change them by going through the standard Dev, Test, Prod SDLC.

As far as populating these environments with data goes, if you really need Production-like data (and production volumes of data) then you should build routines for copying the data from Prod to the chosen target environment that, where necessary, anonymise the data. These scripts should be managed in your code repository and as part of your SDLC there should be a requirement to build/update the script for any new/changed table

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