You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Csaba Ringhofer (Jira)" <ji...@apache.org> on 2025/03/19 19:28:00 UTC

[jira] [Created] (IMPALA-13878) Prioritize recently read files in scan range order

Csaba Ringhofer created IMPALA-13878:
----------------------------------------

             Summary: Prioritize recently read files in scan range order
                 Key: IMPALA-13878
                 URL: https://issues.apache.org/jira/browse/IMPALA-13878
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
            Reporter: Csaba Ringhofer


Currently in a query each host computes a fixed scan range order and fragment instances/scanner threads pop from this queue (IMPALA-11539).
The order only considers scan range size (preferring larger) and HDFS caching.

Giving preference to recently read files could improve the efficiency of caches involved in IO (OS's IO cache, remote data cache, file handle cache). E.g. assuming LRU if a query reads file f1 ... f100 (in this order), and only 10 files with to cache, then when repeating the query it is more efficient to read in the opposite order to read the last 10 files first that are still in cache.

Ideally the order would be dynamic as parallel queries may read a file making it "hot" even if it was cold during planning. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org