Storage Mapping
Control the storage location of data by column values. This feature can be useful if you have multiple storage locations.
Storage mapping⚓︎
Use storage mapping to shard a single table into partitions stored in multiple storage locations. This feature tells Hydrolix to select a storage location based on literal values within a user-specified mapping column. Provide a list of values that maps to each storage bucket for the given column.
The following example shards data using the column named US State. Hydrolix selects a storage location for data according to the following rules:
- Rows where the
US Statecolumn contains valuesNew YorkorColoradomap to8bc2f07d-cdfc-storage-2 - Rows where the
US Statecolumn contains valuesOregonorNew Hampshiremap to8bc2f07d-cdfc-storage-3 - All other rows map to the default storage bucket,
8bc2f07d-cdfc-storage-1
| Table Mapping Example | |
|---|---|
You can also configure storage mappings in the Hydrolix UI:

- Log into the UI at
https://{myhost}.hydrolix.live. - Click Data in the left nav.
- Select the project and table you want to configure.
- In Advanced Options, select the for bucket settings and Edit.
- Input the mapping column under Column Name.
- Click Add mapping.
- In the right nav, click Add mapping to configure a storage mapping.
- In the Storage ID dropdown, select the ID of the storage where you'd like to store a subset of data.
- In Values text entry box, enter the values you would like to map to the storage bucket you just selected. Press space after entering a value to persist it to the list of mapping values.
- Configure additional mappings by clicking Add mapping and repeating the previous 3 steps.
- Click Save changes to persist your storage mapping settings for the table.
Use cases⚓︎
- Compliance: Keeping data in a particular region may be a compliance requirement. For example, for GDPR.
- Security: You can segment data by customer. Data for a subset of customers may require additional layers of security.
Tradeoffs⚓︎
Separating data into multiple storage buckets can impact system performance depending on your query patterns and resources.