Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Metastore
    • Labels:
      None
    • Flags:
      Patch

      Description

      Improve cache key for cache implemented in org.apache.hadoop.hive.metastore.AggregateStatsCache.

      1. Cache some of the key components themselves (db name, table name) using String intern method to conserve memory for repeated keys, to improve equals method as now references can be used for equality, and hashcodes will be cached as well as per String clash hashcode method.
      2. Upgrade debug logging to not generate text unless required
      3. Changed equals method to check first for the item most likely to be different, column name

        Attachments

        1. HIVE-16879.2.patch
          5 kB
          BELUGA BEHR
        2. HIVE-16879.1.patch
          3 kB
          BELUGA BEHR

          Issue Links

            Activity

              People

              • Assignee:
                belugabehr BELUGA BEHR
                Reporter:
                belugabehr BELUGA BEHR
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: