Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21018

Sql. Introduce cache for plan mapping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • None
    • sql

    Description

      Mapping query on cluster topology is fairly expensive operation, because it requires acquiring replicas per every partition a traversing a plan tree in order to compute colocation of a query fragment.

      This problem can be mitigated by introducing a cache for mapped queries.

      Implementation notes: do not forget to invalidate cache when partition lease got expired or logical topology has been changed.

      Attachments

        1. ReferencesCacheTest.java
          8 kB
          Pavel Pereslegin
        2. ReferencesCache.java
          6 kB
          Pavel Pereslegin

        Issue Links

          Activity

            People

              xtern Pavel Pereslegin
              korlov Konstantin Orlov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 5h 20m
                  5h 20m