Skip to content

Commit 027115a

Browse files
committed
init
1 parent 0581f14 commit 027115a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/user_guides/fs/feature_group/create.md

+17
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,23 @@ When you create a feature group, you can specify the table format you want to us
8989

9090
During the creation of a feature group, it is possible to define the `storage_connector` parameter, this allows for management of offline data in the desired table format outside the Hopsworks cluster. Currently, only [S3](../storage_connector/creation/s3.md) connectors and "DELTA" `time_travel_format` format is supported.
9191

92+
##### Online Config
93+
94+
While defining online-enabled feature groups it is also possible to configure an online table. You can specify [table options](https://docs.rondb.com/table_options/#table-options) by providing comments. Additionally, it is also possible to define whether online data is stored in memory or on disk using [table space](https://docs.rondb.com/disk_columns/#disk-columns).
95+
96+
The code example shows the creation of an online-enabled feature group that stores online data on disk using `ts_1` table space and setting several table properties in the comment section.
97+
98+
```
99+
fg = fs.create_feature_group(
100+
name='air_quality',
101+
description='Air Quality characteristics of each day',
102+
version=1,
103+
primary_key=['city','date'],
104+
online_enabled=True,
105+
online_config={'table_space': 'ts_1', 'online_comments': ['NDB_TABLE=READ_BACKUP=1', 'NDB_TABLE=PARTITION_BALANCE=FOR_RP_BY_LDM_X_2']}
106+
)
107+
```
108+
92109

93110
#### Streaming Write API
94111

0 commit comments

Comments
 (0)