{
    "id": "fb157-table-statistics",
    "title": "Страницы и индекс: сопоставить физический отчёт с нужными товарами",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Таблица",
            "LAB_ITEMS"
        ],
        [
            "Страниц данных",
            1
        ],
        [
            "Индекс",
            "IX_FB157_QTY"
        ],
        [
            "Глубина индекса",
            1
        ],
        [
            "Листовых страниц индекса",
            1
        ],
        [
            "Узлов в индексе",
            2
        ],
        [
            "Товаров с остатком больше нуля",
            1
        ],
        [
            "Показанный товар",
            "Cable"
        ],
        [
            "Его остаток",
            3
        ]
    ],
    "checks": {
        "data_pages_observed": true,
        "own_index_observed": true,
        "index_structure_observed": true,
        "bounded_business_selection": true,
        "physical_nodes_not_selected_rows": true,
        "sql_link_closed": true,
        "owned_files_removed": true,
        "owned_objects_removed": true
    },
    "observations": {
        "statistics": {
            "table": "LAB_ITEMS",
            "data_pages": 1,
            "index": "IX_FB157_QTY",
            "depth": 1,
            "leaf_pages": 1,
            "nodes": 2
        },
        "selected": [
            {
                "id": 1,
                "title": "Cable",
                "qty": 3
            }
        ],
        "query": "SELECT ID,TITLE,QTY FROM LAB_ITEMS WHERE QTY>0 ORDER BY ID ROWS 10",
        "service_action": "IBASE_STS_DATA_PAGES",
        "service_argument": "IBASE_STS_IDX_PAGES",
        "report_excerpt": " \nDatabase \"[каталог учебного профиля]\\[учебный файл]\" \nGstat execution time Sat Nov  7 11:47:43 2026 \n \nDatabase header page information: \n\tFlags\t\t\t0 \n\tGeneration\t\t25 \n\tSystem Change Number\t0 \n\tPage size\t\t8192 \n\tODS version\t\t13.1 \n\tOldest transaction\t12 \n\tOldest active\t\t13 \n\tOldest snapshot\t\t13 \n\tNext transaction\t13 \n\tSequence number\t\t0 \n\tNext attachment ID\t3 \n\tImplementation\t\tHW=AMD\/Intel\/x64 little-endian OS=Windows CC=MSVC \n\tShadow count\t\t0 \n\tPage buffers\t\t0 \n\tNext header page\t0 \n\tDatabase dialect\t3 \n\tCreation date\t\tNov 7, 2026 8:47:43 \n\tAttributes\t\tforce write \n \n    Variable header data: \n\tDatabase GUID:\t{84B29A2F-2D33-4E29-8305-31284AF80F0E} \n\tSweep interval:\t\t20000 \n\t*END* \n \n \nDatabase file sequence: \nFile [каталог учебного профиля]\\[учебный файл] is the only file \n \nAnalyzing database pages ... \nLAB_ITEMS (128) \n    Primary pointer page: 224, Index root page: 225 \n    Pointer pages: 1, data page slots: 1 \n    Data pages: 1, average fill: 1% \n    Primary pages: 1, secondary pages: 0, swept pages: 1 \n    Empty pages: 0, full pages: 0 \n    Fill distribution: \n\t 0 - 19% = 1 \n\t20 - 39% = 0 \n\t40 - 59% = 0 \n\t60 - 79% = 0 \n\t80 - 99% = 0 \n \n    Index IX_FB157_QTY (1) \n\tRoot page: 234, depth: 1, leaf buckets: 1, nodes: 2 \n\tAverage node length: 5.00, total dup: 0, max dup: 0 \n\tAverage key length: 3.00, compression ratio: 0.50 \n\tAverage prefix length: 0.00, average data length: 1.50 \n\tClustering factor: 1, ratio: 0.50 \n\tFill distribution: \n\t     0 - 19% = 1 \n\t    20 - 39% = 0 \n\t    40 - 59% = 0 \n\t    60 - 79% = 0 \n\t    80 - 99% = 0 \n \n    Index RDB$PRIMARY1 (0) \n\tRoot page: 230, depth: 1, leaf buckets: 1, nodes: 2 \n\tAverage node length: 5.00, total dup: 0, max dup: 0 \n\tAverage key length: 3.00, compression ratio: 0.50 \n\tAverage prefix length: 0.00, average data length: 1.50 \n\tClustering factor: 1, ratio: 0.50 \n\tFill distribution: \n\t     0 - 19% = 1 \n\t    20 - 39% = 0 \n\t    40 - 59% = 0 \n\t    60 - 79% = 0 \n\t    80 - 99% = 0 \n \nPHPMAN157_OWNER (129) \n    Primary pointer page: 231, Index root page: 232 \n    Pointer pages: 1, data page slots: 1 \n    Data pages: 1, average fill: 1% \n    Primary pages: 1, secondary pages: 0, swept pages: 0 \n    Empty pages: 0, full pages: 0 \n    Fill distribution: \n\t 0 - 19% = 1 \n\t20 - 39% = 0 \n\t40 - 59% = 0 \n\t60 - 79% = 0 \n\t80 - 99% = 0 \n \nGstat completion time Sat Nov  7 11:47:43 2026 \n \n",
        "index_existence_does_not_prove_query_plan": true
    },
    "runtime": {
        "php": "8.2.35",
        "extension": "3.0.1",
        "server_version": "WI-V5.0.4.1812 Firebird 5.0",
        "implementation": "Firebird\/Windows\/AMD\/Intel\/x64",
        "transport": "embedded_local_services"
    },
    "owned_objects": [
        {
            "type": "DATABASE",
            "name": "fb157_statistics_d41556a7da.fdb"
        }
    ],
    "removed_objects": [
        {
            "type": "DATABASE",
            "name": "fb157_statistics_d41556a7da.fdb"
        }
    ]
}
