wu-sheng commented on code in PR #195: URL: https://github.com/apache/skywalking-banyandb/pull/195#discussion_r1002506384
########## docs/crud/stream/schema.md: ########## @@ -0,0 +1,109 @@ +# CRUD Streams + +CRUD operations create, read, update and delete streams. + +[`bydbctl`](../../clients.md#command-line) is the command line tool in examples. + +Stream intends to store streaming data, for example, traces or logs. +## Create operation + +Create operation adds a new stream to the database's metadata registry repository. If the stream does not currently exist, create operation will create the schema. + +### Examples of creating + +A stream belongs to a unique group. We should create such a group with a catalog `CATALOG_STREAM` +before creating a stream. + +```shell +$ bydbctl group create -f - <<EOF +metadata: + name: default +catalog: CATALOG_STREAM +resource_opts: + shard_num: 2 + block_interval: + unit: UNIT_HOUR + num: 2 + segment_interval: + unit: UNIT_DAY + num: 1 Review Comment: A small discussion, would we support block_size and segment_size in the future or now? In a typical use case, size-oriented policy is widely used for storage/disk operation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
