Private GIT

Skip to content
Snippets Groups Projects
Commit 534b4c61 authored by Gary Allan's avatar Gary Allan
Browse files

Performance fix for MySQL 5.x

Rewrite SQL used within Subnets::fetch_subnet_slaves_recursive()
and Subnets::create_subnet_familytree() to use INNER JOINS in
place of WHERE IN (SELECT id FROM $table) sub-queries.

Update create_subnet_familytree() to use fewer temporary tables.

create_subnet_familytree() and fetch_subnet_slaves_recursive():

    MySQL   5.1.73  (x86)   +500-750%
    MySQL   5.5.57  (ARMv7) +500-850%
    MariaDB 10.1.25 (x64)   +10-20%
parent 99b1ab83
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment