Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-505

Optimize MIN and MAX when column leads row key

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • 374

    Description

      We should be able to change an aggregate query to a scan with LIMIT 1 if the only aggregation is MIN(value) when the index is on value ASC and MAX(value) when the index is on value DESC. Might be able to optimize the reverse too, by finding the largest possible value, but need to test this.

      Attachments

        Activity

          People

            RCheungIT Haoran Zhang
            jamestaylor James R. Taylor
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: