crossoverJie opened a new issue, #21200:
URL: https://github.com/apache/pulsar/issues/21200

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Motivation
   
   I have a lot of producers in a topic called 
`admin.topics().getPartitionedStats`, like 3k producers.The response size of 
`getPartitionedStats` is enormous (400M+) and it responds slowly.
   
   
![image](https://github.com/apache/pulsar/assets/15684156/6a8bad02-52de-4b39-bad8-00af5b496b7a)
   
   However, I do not require information about `publishers` and `subscriptions`.
   
   ### Solution
   
   So I hope publishers and subscriptions can be optional, we can add new 
interface like below:
   
   ```java
       CompletableFuture<PartitionedTopicStats> getPartitionedStatsAsync(
               String topic, boolean perPartition, boolean getPreciseBacklog, 
boolean subscriptionBacklogSize,
               boolean getEarliestTimeInBacklog, boolean containPublishers, 
boolean containSubsriptions,);
   ```
   
   ### Alternatives
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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]

Reply via email to