GBase News
GBase 8a Multi-Path Tablespace Storage Expansion
In a database, the tablespace storage path information of a table is an attribute typically specified when the table is created, and there is only one such path, which cannot change. In the GBASE GCDW product, for example, data files can only be written to a fixed S3 bucket. As table data keeps growing, a single path leads to I/O hotspots and storage capacity ceilings.
To solve the single-tablespace-path bottleneck, GBASE reworked tablespace to support multiple paths, rebuilding core paths including DML/DDL, garbage collection, backup and recovery, and LOADER. The original single path is now replaced by multi-path tablespaces, so data files can be distributed across multiple S3 buckets.
Overall Storage Architecture
With multi-path tablespaces, the overall storage architecture looks like this:

pfile logical object
It maps to two physical files, pcfile1 and pcfile2: pcfile1 resides in bucket_1, and pcfile2 resides in bucket_2.
pcfile1 receives an update
A new version, pcfile1_ver2, is generated and still written to bucket_1 — it does not drift to another bucket.
This design delivers both load balancing across buckets and controllable data placement for each version.
Core Changes: DDL and DML Operations
Read operations
GBASE keeps the underlying DC data read interface, so the overall flow needs little adjustment. Before calling the DC data read interface, it only needs to obtain the multi-path tablespace information corresponding to the current DC, and through the DC's pcfile_id, reverse-associate all path information of that tablespace to achieve a full read of the data.
Update operations
For regular batch updates, the multi-path tablespace information object replaces the original single-path information. The new DC version must be written to the bucket where the updated DC originally resides, with the target bucket determined by the old DC's pcfile_id — a path cannot be chosen at random. Delta versions produced by an update cannot migrate across buckets: the new and old pcfile versions must land in the same S3 bucket, keeping version placement controllable.
Fast Update
Fast Update works by deleting the old record and inserting a new one. The delete operation is unchanged, and the insert follows the insert logic described below.
Insert (WriteDC)
The table's multi-path tablespace information (total capacity, remaining capacity, and so on) is refreshed periodically. Based on the state of the table's multi-path tablespace at insert time, the most suitable path is selected and placed into the current task's build. The target bucket is chosen from among multiple paths, and the new DC data is written.
Garbage Collection Module Changes
Garbage collection is a key module of the storage engine. After the multi-path rework, its judgment and cleanup logic remain unchanged, but the processing target changes from a single path to multiple paths. Concurrent processing can be introduced later, leaving room for further performance gains.
Data Migration and Import/Export Adaptation
Data migration
Before starting, data migration first obtains all multi-path tablespace information for the current table and picks the optimal path from it (based on internal policies such as largest remaining space).
Import and export
Export: iterate over all tablespace paths of the table, read and export all data, leaving room for later concurrency optimization.
Import: the table's multi-path information is refreshed periodically while the import task is being built, and the best tablespace path is selected by internal policy when the task is constructed to import data.
Highlights of Multi-Path Tablespaces
Object-based paths: hard-coded string paths are eliminated across the whole chain, with a unified CTableSpace object managing multiple S3 paths.
No cross-bucket updates: a new version of an updated pcfile must land in the bucket where the original pcfile resides; only newly inserted data can choose any bucket.
Full-chain coverage: DML, external tables, GC, data migration, and LOADER import are all adapted.
Logic reuse: external table materialization to DC, Fast Update inserts, and LOADER imports all reuse the existing WriteDC insert flow, lowering maintenance cost.
Diverse storage path types: a single table can simultaneously support multiple S3 paths, multiple HDFS paths, and mixed S3/HDFS paths, significantly lowering the requirements for tablespace expansion and making it easier for customers.
Dynamic expansion at lower cost: a table's multi-path tablespace can be added dynamically without building a new database cluster, reducing the customer's cost of use.
FAQ
Why does a tablespace need multiple paths?
A: The tablespace storage path of a table is an attribute specified at table creation, and there is only one, which cannot change. As table data grows, a single path causes I/O hotspots and storage capacity ceilings.
Which parts of the system does the multi-path rework cover?
A: Core paths including DML/DDL, garbage collection, backup and recovery, and LOADER were rebuilt, so the original single path is replaced by multi-path tablespaces and data files are distributed across multiple S3 buckets.
Can an updated version of data end up in a different bucket?
A: No. A new DC version must be written to the bucket where the updated DC originally resides, determined by the old DC's pcfile_id, and delta versions cannot migrate across buckets — new and old pcfile versions must land in the same S3 bucket.
Is only S3 multi-path supported?
A: No. A single table can support multiple S3 paths, multiple HDFS paths, and mixed S3/HDFS paths at the same time, and tablespace paths can be added dynamically without building a new database cluster.