programing

mariadb 10.5의 출력을 설명하는 행 섹션의 백분율의 의미

minimums 2023. 9. 15. 20:52
반응형

mariadb 10.5의 출력을 설명하는 행 섹션의 백분율의 의미

저는 최근 mariadb 10.5로 옮겼고, 설명 출력의 행과 함께 백분율이 표시되는 이 특정 출력을 접했습니다.동일한 기능에 대한 설명서를 찾을 수 없었습니다. 아마도 새로운 기능인 것 같습니다.

그게 정확히 무슨 뜻입니까?행을 읽는 것에 관한 어떤 종류의 확률입니까?

MariaDB [c6b2c772b91fd3d8]> explain 
    select 
        `execute_action`, `state_type` 
    from 
        `tabSuperflow Document State` 
    where 
        `parent` = 'Check Point' 
        and `state` = 'Pending TSM Approval - Delivery' 
    order by 
        modified desc \G
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: tabSuperflow Document State
         type: ref|filter
possible_keys: parent,index_on_state
          key: index_on_state|parent
      key_len: 563|563
          ref: const
         rows: 1 (17%)
        Extra: Using index condition; Using where; Using filesort; Using rowid filter
1 row in set (0.001 sec)

관련이 없는 문서에서 답을 찾았습니다.

https://mariadb.com/kb/en/rowid-filtering-optimization/

행 열에는 5%의 예상 필터 선택도가 표시됩니다.

따라서 기본적으로 이 백분율은 예상되는 필터 선택도를 보여줍니다. 즉, 이 단계에서 where 절을 사용하여 필터링될 행입니다.이 출력은 의 확장 출력 설명에서도 확인할 수 있습니다.filtered기둥.

MariaDB [c6b2c772b91fd3d8]> explain extended select `execute_action`, `state_type` from `tabSuperflow Document State` where `parent` = 'Check Point' and `state` = 'Pending TSM Approval - Delivery' order by modified desc \G
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: tabSuperflow Document State
         type: ref|filter
possible_keys: parent,index_on_state
          key: index_on_state|parent
      key_len: 563|563
          ref: const
         rows: 1 (17%)
     filtered: 16.67
        Extra: Using index condition; Using where; Using filesort; Using rowid filter
1 row in set, 1 warning (0.001 sec)

언급URL : https://stackoverflow.com/questions/62943648/meaning-of-percentage-in-rows-section-in-explain-output-of-mariadb-10-5

반응형