• Evgeny Potemkin's avatar
    Bug #55656: mysqldump can be slower after bug 39653 fix. · 151af144
    Evgeny Potemkin authored
    After fix for bug 39653 the shortest available secondary index was used for
    full table scan. Primary clustered key was used only if no secondary index
    can be used. However, when chosen secondary index includes all fields of the
    table being scanned it's better to use primary index since the amount of
    data to scan is the same but the primary index is clustered.
    Now the find_shortest_key function takes this into account.
    151af144
sql_select.cc 549 KB