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

Add index to expiration to improve cleanup query

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0 M4
    • Message Store
    • None

    Description

      Per Paul Smith on the user@ mailing list:

      ....
      Even with only a few thousand records in the table, the following:

      create index idx_activemqmsgs_expiration on activemq_msgs(expiration)

      appears to reduce the query plan cost of this scan by at least an order of magnitude, changing the scan from a Clustered Index Scan (that's just a table scan in SQL Server, if the table has a clustered index), to an index scan.

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            chirino Hiram R. Chirino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: