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

标签 data-modeling ravendb

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

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

In another word, having bounded-context in a same document store is not looking good, so the best solution is to split the stores to make it 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/

相关文章:

ravendb - nservicebus 4.0.3 如何禁用 ravendb

mongodb - 迁移 Azure 表存储

ravendb - 使用客户端 api 在 ravendb 中解决 selectmany

ravendb - 在 RavenDb 中使用私有(private)支持字段反序列化 IEnumerable

mysql - 我应该为常见的数据库字段(如 active 、createdAt 等)制作单独的表吗

algorithm - 统计/算法 : How do I compare a weekly graph with its own history to see when in the past it was almost the same?

database - 关系设计 : Column Attributes

android - 用于分析用户移动应用程序 Activity 的数据库 - Mongo 或 Redis 或其他?

Neo4j - 24/7 赌场名册

ravendb - 在测试结果输出中显示 RavenDB 请求