Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6158

Computing pending message size for a durable subscription is very slow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.13.0
    • 5.13.2, 5.14.0
    • Broker, KahaDB
    • None

    Description

      AMQ-5923 added a new feature to compute the pending message size for a durable subscription. The problem is that the current algorithm used in KahaDB to iterate over the pending messages for a subscription runs in O(n^2) because it uses the wrong index (location index) to compute the size.

      Now that AMQ-6097 has been resolved so that the order index contains size information for messages as well, we can rewrite the algorithm to be O(n) which will make this run significantly faster for large pending message sizes (such as 100k messages, etc)

      Attachments

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              cshannon Christopher L. Shannon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: