WindowStorageConfig.md
May 27, 2026 ยท View on GitHub
Window Storage
The window storage is responsible for keeping track of:
- The windows in the rslearn dataset, including their name, group, projection, bounds, and time range.
- The window layer datas, i.e., for each layer, the item groups produced by the matching process.
- The completed layers for each window, i.e., which layers have been materialized successfully for each window.
The default window storage is file-based:
{
"storage": {
"class_path": "rslearn.dataset.storage.file.FileWindowStorageFactory"
}
}
DatasetFormat.md details the file structure. FileWindowStorage works
across all filesystem types (e.g. local filesystem but also object storage), and doesn't need
a database to be set up, but it is slow when there are a lot of windows because it stores the
information for each window in a separate file (so many files need to be read to list windows).
Below, we detail other window storages.
SQLiteWindowStorage
SQLiteWindowStorage uses an sqlite database. It can be configured like this:
{
"storage": {
"class_path": "rslearn.dataset.storage.sqlite.SQLiteWindowStorageFactory"
}
}