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

IndexScrutinyTool slow for indexes on multitenant tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.15.0, 5.1.0
    • 4.15.0, 5.1.0
    • None
    • None

    Description

      The IndexScrutinyTool is doing full scans for index tables on multitenant tables.
      This is due to a change in PHOENIX-5089, where we added code to IndexColumnNames to skip a portion of the PK if the table is multitenant:

      https://github.com/apache/phoenix/commit/cc9754fff840f38d13c3adb0c963296959fff3fa#diff-0705645faa779229d00792c032ed377fR64

      This causes scrutinies for global, non-view indexes on multitenant tables to skip the tenantId when generating the pk column list, thereby causing a full scan.

      Attachments

        1. PHOENIX-5456.4.x-1.3.1.patch
          88 kB
          Gokcen Iskender
        2. PHOENIX-5456.master.1.patch
          88 kB
          Gokcen Iskender
        3. PHOENIX-5456.master.2.patch
          88 kB
          Gokcen Iskender

        Issue Links

          Activity

            People

              giskender Gokcen Iskender
              vincentpoon Vincent Poon
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h