All Products
Search
Document Center

Platform For AI:Create a data store

Last Updated:Apr 07, 2025

FeatureStore supports offline and online data stores. Offline data stores are for daily calculated offline feature data, while online data stores are for offline features and real-time feature data required by online services. Before creating a FeatureStore project, you must configure offline and online data stores. This topic describes how to configure data stores.

Offline data stores support MaxCompute. It can store attribute tables of feature entities such as users and items, and data tables produced after statistics and derivation, such as user offline feature tables, product feature tables, and advertisement feature tables. Offline feature data is typically not directly called by online services. Instead, FeatureStore's data synchronization feature can write it into online data stores for invocation.

Online data stores include high-performance storage services such as Hologres, and Tablestore, which support millisecond-level invocation by online services.

Prerequisites

Procedure

  1. Go to the FeatureStore page.

    1. Log on to the PAI console. In the left-side navigation pane, choose Data Preparation > FeatureStore.

    2. Select a workspace and click Enter FeatureStore.

  2. On the Store tab, click Create Store. Configure the new offline or online data store.

    image

    Offline data store: MaxCompute

    1. Configure parameters for the MaxCompute data store.

      • Type: MaxCompute

      • Name: Enter a custom name for the data store.

      • MaxCompute Project Name: Select the MaxCompute project you have created.

    2. Click Submit.

    Online data store: FeatureDB

    1. Configure parameters for the FeatureStore data store.

      • Activate FeatureDB: If you are using FeatureDB for the first time, follow the prompts on the interface to activate it. FeatureDB is billed on a pay-as-you-go basis, determined by storage volume and the number of read/write operations. For billing rules, see Billing of FeatureStore.

      • Name: The name is fixed as feature_db.

      • Username: The username for the FeatureDB instance.

      • Password: The password for the FeatureDB instance.

    2. (Optional) Complete the VPC Network High-speed Connectivity Configuration. Once configured successfully, you can utilize the FeatureStore SDK for direct access to FeatureDB via a private network in the VPC, which enhances data read/write performance and reduces access latency.

      • VPC: Choose the VPC associated with the online service that utilizes FeatureStore.

      • Zone and Switch: Choose the appropriate zone and switch, making sure to select the switch corresponding to the zone of your active service machine. For enhanced business continuity and stability, it is advisable to choose switches across a minimum of two zones to ensure high availability.

      • Security Group Name: Choose the security group you have created within the VPC.

    3. Click Submit .

    Online data store: Hologres

    1. Configure parameters for the Hologres data store.

      • Type: Hologres

      • Name: Enter a custom name for the data store.

      • Instance ID: Select the Hologres instance ID you have created.

      • Database Name: Choose the database associated with the Hologres instance you created.

      • (Optional) If you are prompted that you do not have permissions to access the Hologres instance when configuring the Hologres data store, perform the following steps to complete the authorization:

        1. Log on to the Hologres console. In the left-side navigation pane, click Instances. Select the desired Hologres instance. On the instance details page, click Account Management.

        2. On the User Management page, click Add User. In the dialog box that appears, select the RAM user who will use FeatureStore. Then, select Examples of the Super Administrator (SuperUser) or Regular User. Then click OK.

        3. (Optional) If you select Regular User, you must also authorize the RAM user to access the database.

          1. Go to the instance details page and click Database Management.

          2. Click Authorize User in the Actions column.

          3. Click Grant Permissions in the upper right corner.

            image

          4. Select the RAM user using FeatureStore and the role of Developer. Click OK.

      • (Optional) If you are still prompted that you do not have permissions after authorization, check whether the Hologres instance version is lower than 2.0.18. If so, upgrade the instance to the latest version.

    2. Click Submit.

    Online data store: GraphCompute

    1. Configure parameters for the GraphCompute data store.

      • Type: GraphCompute

      • Name: Enter a custom name for the data store.

      • Instance ID: Select the GraphCompute instance ID you have created.

      • Store Address, Username, and Password: Set to the Endpoint, Username and Password of your GraphCompute instance.

    2. Click Submit.

What to do next

After configuring the data store, you can create a FeatureStore project.

References

For more information about FeatureDB, see FeatureDB overview.