diff --git a/ydb/docs/en/core/reference/ydb-sdk/topic.md b/ydb/docs/en/core/reference/ydb-sdk/topic.md index 582648547e3d..bbaa6d1620cf 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/topic.md +++ b/ydb/docs/en/core/reference/ydb-sdk/topic.md @@ -200,7 +200,14 @@ When you update a topic, you must specify the topic path and the parameters to b - Python - This feature is under development. + Example of updating a topic's list of supported codecs and minimum number of partitions: + + ```python + driver.topic_client.create_topic(topic_path, + set_supported_codecs=[ydb.TopicCodec.RAW, ydb.TopicCodec.GZIP], # optional + set_min_active_partitions=3, # optional + ) + ``` - Java diff --git a/ydb/docs/ru/core/reference/ydb-sdk/topic.md b/ydb/docs/ru/core/reference/ydb-sdk/topic.md index 68da2711348c..af9feb6bfff5 100644 --- a/ydb/docs/ru/core/reference/ydb-sdk/topic.md +++ b/ydb/docs/ru/core/reference/ydb-sdk/topic.md @@ -21,7 +21,7 @@ [Примеры на GitHub](https://github.com/ydb-platform/ydb-java-examples/tree/master/ydb-cookbook/src/main/java/tech/ydb/examples/topic) -- {Python} +- Python [Примеры на GitHub](https://github.com/ydb-platform/ydb-python-sdk/tree/main/examples/topic) @@ -206,7 +206,14 @@ - Python - Функциональность находится в разработке. + Пример изменения списка поддерживаемых кодеков и минимального количества партиций у топика + + ```python + driver.topic_client.alter_topic(topic_path, + set_supported_codecs=[ydb.TopicCodec.RAW, ydb.TopicCodec.GZIP], # optional + set_min_active_partitions=3, # optional + ) + ``` - Java