forked from ros2/rosbag2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove sqlite3-specific info from main README, make it more storage a…
…gnostic and point to plugin-specific README (ros2#1193) Signed-off-by: Emerson Knapp <[email protected]>
- Loading branch information
1 parent
1accc18
commit 1ce1e01
Showing
2 changed files
with
46 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# rosbag2_storage_sqlite3 | ||
|
||
Storage implementation plugin for rosbag2 providing SQLite3 `.db3` files as the bag storage backend. | ||
|
||
|
||
## Storage Configuration File | ||
|
||
The `--storage-config-file` option for this plugin takes files in the following format: | ||
|
||
``` | ||
read: | ||
pragmas: <list of SQLite pragma settings for read-only> | ||
write: | ||
pragmas: <list of SQLite pragma settings for write modes> | ||
``` | ||
|
||
By default, SQLite settings are significantly optimized for performance. | ||
This might have consequences of bag data being corrupted after an application or system-level crash. | ||
This consideration only applies to current bagfile in case bag splitting is on (through `--max-bag-*` parameters). | ||
If increased crash-caused corruption resistance is necessary, use `resilient` option for `--storage-preset-profile` setting. | ||
|
||
Settings are fully exposed to the user and should be applied with understanding. | ||
Please refer to [documentation of pragmas](https://www.sqlite.org/pragma.html). | ||
|
||
An example configuration file could look like this: | ||
|
||
``` | ||
write: | ||
pragmas: ["journal_mode = MEMORY", "synchronous = OFF", "schema.cache_size = 1000", "schema.page_size = 4096"] | ||
``` |