rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

[Enhancement] Counting the filtered message when filter by sql92.

Open ymwneu opened this issue 1 year ago • 0 comments

Before Creating the Enhancement Request

  • [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

To count the number of filtered records in SQL, and identify the subscriptions that consume a significant amount of filtering resources.

Motivation

The SQL filtering is causing excessive CPU consumption, and the current system does not record the filtered message information for subscription groups. Therefore, there is a need to add this statistical information to facilitate the evaluation of resource consumption for each subscription group in the future.

Describe the Solution You'd Like

When using getMessage, count the number of messages filtered by SQL and record it in the result. Subsequently, the filter information can be tracked through ConsumeMessageContext.

Describe Alternatives You've Considered

no

Additional Context

No response

ymwneu avatar Mar 28 '25 07:03 ymwneu