• Oleg Smirnov's avatar
    MDEV-29104 Optimize queries to INFORMATION_SCHEMA.PARAMETERS/ROUTINES · d9092e3d
    Oleg Smirnov authored
    For queries like
        "SELECT * FROM INFORMATION_SCHEMA.PARAMETERS
          WHERE SPECIFIC_NAME='proc_name'"
    and
        "SELECT * FROM INFORMATION_SCHEMA.ROUTINES
          WHERE ROUTINE_NAME='proc_name'"
    there is a possibility to avoid loading of the stored procedure code
    and parsing it to retrieve parameters.
    If the name of the procedure/function is specified explicitly then
    it is possible to filter out routines that do not match at
    an early stage.
    d9092e3d
information_schema_routines.result 33.6 KB