【问题标题】:Dse graph schema full or schema lessDse 图架构完整或架构少
【发布时间】:2017-06-08 04:33:27
【问题描述】:

我很困惑DataStax graph 是模式完整还是模式少。

我问这个问题是因为getting started tutorial 告诉创建架构。但是我在边缘属性上插入了随机的key-valueDSE graph 没有错误地接受了它。

如果我在 DSE-Graph 上插入随机顶点或边属性(键值)会不会有问题。

【问题讨论】:

    标签: datastax datastax-enterprise datastax-java-driver datastax-startup datastax-enterprise-graph


    【解决方案1】:

    DSE Graph 在开发人员模式下会自动更改架构:

    schema.config().option('graph.schema_mode').set('Development')
    

    但在生产模式下需要用户手动更改架构:

    schema.config().option('graph.schema_mode').set('Production')
    

    DSE Graph 的数据存储在 DSE 的底层,这意味着有 cassandra 表表示您的图的邻接列表。这些表的架构允许数据库在保持高性能的同时进行线性和水平扩展。

    架构更改在开发过程中对用户是透明的,但在生产过程中是经过深思熟虑和需要的。

    有关详细信息,请参阅 DataStax 文档: https://docs.datastax.com/en/latest-dse/datastax_enterprise/graph/reference/schema/refSchemaConfig.html

    【讨论】:

    • 我有一个用例,其中随机属性可以作为属性放置在顶点和边上。如果在生产模式下不允许更改架构,如何实现这一点。
    • 假设我将DSE 服务器部署在development mode 而不是production mode。我将来会面临哪些问题。
    • But will require users to make manual schema changes when in production mode 请您详细说明manual schema 以及如何操作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-21
    • 1970-01-01
    • 2018-10-03
    • 1970-01-01
    • 2016-11-22
    • 2013-04-25
    相关资源
    最近更新 更多