You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "djcohen03 (via GitHub)" <gi...@apache.org> on 2023/05/19 19:18:03 UTC

[GitHub] [pulsar] djcohen03 closed the discussion with a comment: Is there a way to set the topic compaction key using the Python pulsar client?

GitHub user djcohen03 closed the discussion with a comment: Is there a way to set the topic compaction key using the Python pulsar client?

It appears that the `partition_key` argument is what is needed to accomplish topic compaction  in this case:
```
producer.send(..., partition_key='key')
```

GitHub link: https://github.com/apache/pulsar/discussions/20360#discussioncomment-5951863

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org