Create a data domain

Updated at:

A data domain is a key component of a logical space, serving as a namespace partitioned by business characteristics. Before you can use standardized modeling, you must create a data domain. This topic describes how to create a data domain.

Prerequisites

  • This feature is available only in the Intelligent R&D edition. If you are using a different edition, you must upgrade your instance. For more information, see Upgrade.

  • Before you begin, ensure that the users you want to assign as the Domain Architect, business owner, and data owner have been added as Dataphin members. For more information, see Add Dataphin members.

Permissions

Only super administrators and system administrators can create data domains.

Overview

To meet different business requirements, Dataphin allows you to create data domains in either Dev-Prod mode or Basic mode.

  • Dev-Prod mode: Creates two isolated environments: a development (Dev) environment and a production (Prod) environment. This mode provides enhanced security for your production data. This mode is recommended if you have strong governance requirements, a large development team with clear roles, and a sufficient budget for compute and storage resources.

  • Basic mode: Creates a single, unified production (Prod) environment for both development and operations, which streamlines the data production process. This mode is recommended if you prioritize development efficiency, have flexible team roles, and have a limited budget for compute and storage resources.

Procedure

  1. On the Dataphin homepage, click Plan in the top menu bar. This takes you to the Data Architecture page.

  2. On the Data Architecture page, click + Create Data Domain.

  3. In the Create Data Domain wizard, configure the data domain's settings.

    1. Step 1: Select a deployment mode.

      1. Select a deployment mode based on your requirements.

        • Dev-Prod mode: Recommended if you have strong governance requirements, a large data development team with clear roles and responsibilities, and a sufficient budget for compute and storage. In this mode, the Dev and Prod environments are logically isolated. This enhances control over the data development process and strictly controls permissions on production data to maximize its stability. However, this mode is less flexible, requires users to be more proficient with development tools, and requires two sets of compute and storage resources.

        • Basic mode: Recommended if you prioritize development efficiency over strict governance, have flexible team roles, and have a limited budget for compute and storage. This mode provides a unified Prod environment for development and O&M that enables an agile data development process. It balances production stability and flexibility by strictly controlling write permissions on production data. However, this mode risks direct changes to the production environment. Manage project members carefully to maintain production data stability.

          Important

          For the deployment mode, if you select Basic mode, you cannot upgrade the data domain to Dev-Prod mode after it is created.

      2. Click Next.

    2. Step 2: Configure the domain definition.

      1. Configure the basic and business information for the data domain based on the following table.

        Parameter

        Description

        Basic information

        Domain English name

        The English name of the data domain. The name must meet the following rules:

        • Can contain only uppercase letters, lowercase letters, digits, and underscores (_).

        • Cannot exceed 64 characters in length.

        After the data domain is created, its English name in the Dev environment is formatted asLD_{CustomDomainEnglishName}_dev.

        You cannot edit this name after logical tables are created in the data domain to avoid disrupting data production.

        Domain name

        The display name of the data domain. The name must meet the following rules:

        • Can contain only Chinese characters, digits, uppercase letters, lowercase letters, underscores (_), and hyphens (-).

        • Cannot exceed 64 characters in length.

        After the data domain is created, its name in the Dev environment is formatted as{CustomDomainName}_Development.

        Description (Optional)

        Enter a brief description of the data domain. The description cannot exceed 128 characters.

        Icon

        The icon helps you visually categorize the data domain by business area. It does not affect data processing.

        Supported icons include E-commerce ( icon), Finance ( icon), Cloud Computing ( icon), Ad & Marketing ( icon), Logistics ( icon), Entertainment ( icon), Travel ( icon), Health ( icon), Social & Communication ( icon), Catering ( icon), Education ( icon), and Environment ( icon).

        Compute engine

        Engine type

        Select a compute engine for data processing. Supported engines include MaxCompute, Aliyun EMR Serverless Spark.

        Business information

        Domain Architect

        The user responsible for managing the data domain settings, including its basic and business information. You can select any active member from the Dataphin member list.

        Business owner

        (Optional)

        The users responsible for the stability of the data in the domain. You can select up to three members.

        Data owner (Optional)

        The users responsible for the quality of the data in the domain. You can select up to three members.

      2. Click Next.

    3. Step 3: Configure the logical table naming convention.

      When you create a new logical table, the system automatically suggests a name based on these conventions. You can edit the suggested name.

      Note

      After the data domain is created, you can edit these settings on the Logical Table Naming Convention tab of the Table Specification page, which is under Development Specification for the data domain. Modifying a table prefix affects all subtypes within that logical table category. For example, changing the prefix for the dimension logical table category applies the change to all its subtypes, such as normal and hierarchical dimension logical tables.

      The default naming conventions and suffixes are as follows:

      Logical table type

      Default value

      Dimension logical table

      • Table prefix: dim_.

      • Data timeliness (suffix):

        • Normal dimension logical table:

          • Day (T+1): None.

          • Hour (T+h): _hf.

          • Minute (T+m):_mf.

        • Hierarchical dimension logical table:

          • Day (T+1): lvl[n]. where [n] is the hierarchy level number.

        • Enumerated dimension logical table, Virtual dimension logical table:

          • Day (T+1): None.

      Fact logical table

      • Table prefix: fct_.

      • Data timeliness (suffix):

        • Transactional fact logical table:

          • Day (T+1): None.

        • Periodic snapshot fact logical table:

          • Day (T+1): _di.

          • Hour (T+h): _hi.

          • Minute (T+m): _mi.

        • Accumulating snapshot fact logical table:

          • Day (T+1): _df.

          • Hour (T+h): _hf.

          • Minute (T+m): _mf.

      • Subject area abbreviation: Disabled by default. If enabled, the abbreviation for the subject area is automatically added to the table name.

      Summary logical table

      • Table prefix: dws_.

      • Data timeliness (suffix):

        • Day (T+1): None.

        • Hour (T+h): _hh.

        • Minute (T+m): _mm.

  4. Click OK to create the data domain.

Next steps

After you create a data domain, you must create a subject area for it. For more information, see Create a subject area.