gpt4 book ai didi

data-modeling - RavenDb 不同数据库实例包含

转载 作者:行者123 更新时间:2023-12-04 17:08:50 25 4
gpt4 key购买 nike

有没有办法将来自其他 RavenDb 数据库实例的文档加载到我们当前的存储 session 中?

The question is based from not being able to have categorizedcollections in RavenDb studio, so it's annoying to scroll and find adesired collection!

In another word, having bounded-context in a same document store isnot looking good, so the best solution is to split the stores to makeit more efficient and readable as well.

我知道在同一个数据库实例中存储不同的限界上下文不是最佳实践,但如果我需要它怎么办!

更新:

Seems like Cross-Database functions are not available in RavenDb.

最佳答案

如果您需要在 2 个不同的 RavenDB 数据库之间传递信息/文档,那么您始终可以使用 External Replication Task RavenDB ETL task .

RavenDB ETL 任务:
https://ravendb.net/docs/article-page/5.2/csharp/studio/database/tasks/ongoing-tasks/ravendb-etl-task

外部复制任务:
https://ravendb.net/docs/article-page/5.2/csharp/studio/database/tasks/ongoing-tasks/external-replication-task

通过ETL 任务选项,您可以使用脚本来定义和/或过滤发送到其他 RavenDB 数据库的内容。一旦文档到达目标数据库,您就可以像往常一样使用/加载/包含。

关于data-modeling - RavenDb 不同数据库实例包含,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69912032/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com