{ "steps": [ { "join_preparation": { "select#": 1, "steps": [ { "expanded_query": "/* select#1 */ select `LOG`.`IDLOG` AS `IDLOG`,`LOG`.`ID` AS `ID`,`LOG`.`IDADMIN` AS `IDADMIN`,`LOG`.`FECHA` AS `FECHA`,`LOG`.`CODE` AS `CODE`,`LOG`.`VALOR` AS `VALOR`,`LOG`.`EXTRA` AS `EXTRA`,`LOG`.`METODO` AS `METODO`,`LOG`.`TIME` AS `TIME` from `LOG` where (`LOG`.`IDADMIN` <> 99999) order by `LOG`.`FECHA` desc limit 0,10" } ] } }, { "join_optimization": { "select#": 1, "steps": [ { "condition_processing": { "condition": "WHERE", "original_condition": "(`LOG`.`IDADMIN` <> 99999)", "steps": [ { "transformation": "equality_propagation", "resulting_condition": "(`LOG`.`IDADMIN` <> 99999)" }, { "transformation": "constant_propagation", "resulting_condition": "(`LOG`.`IDADMIN` <> 99999)" }, { "transformation": "trivial_condition_removal", "resulting_condition": "(`LOG`.`IDADMIN` <> 99999)" } ] } }, { "substitute_generated_columns": { } }, { "table_dependencies": [ { "table": "`LOG`", "row_may_be_null": false, "map_bit": 0, "depends_on_map_bits": [ ] } ] }, { "ref_optimizer_key_uses": [ ] }, { "rows_estimation": [ { "table": "`LOG`", "range_analysis": { "table_scan": { "rows": 1087991, "cost": 119403 }, "potential_range_indexes": [ { "index": "PRIMARY", "usable": true, "key_parts": [ "IDLOG", "ID", "IDADMIN" ] }, { "index": "IDLOG", "usable": false, "cause": "not_applicable" } ], "setup_range_conditions": [ ], "group_index_range": { "chosen": false, "cause": "not_group_by_or_distinct" }, "skip_scan_range": { "potential_skip_scan_indexes": [ { "index": "PRIMARY", "usable": false, "cause": "query_references_nonkey_column" } ] }, "analyzing_range_alternatives": { "range_scan_alternatives": [ { "index": "PRIMARY", "chosen": false, "cause": "no_valid_range_for_this_index" } ], "analyzing_roworder_intersect": { "usable": false, "cause": "too_few_roworder_scans" } } } } ] }, { "considered_execution_plans": [ { "plan_prefix": [ ], "table": "`LOG`", "best_access_path": { "considered_access_paths": [ { "rows_to_scan": 1087991, "filtering_effect": [ ], "final_filtering_effect": 0.9, "access_type": "scan", "resulting_rows": 979192, "cost": 119401, "chosen": true } ] }, "condition_filtering_pct": 100, "rows_for_plan": 979192, "cost_for_plan": 119401, "chosen": true } ] }, { "attaching_conditions_to_tables": { "original_condition": "(`LOG`.`IDADMIN` <> 99999)", "attached_conditions_computation": [ ], "attached_conditions_summary": [ { "table": "`LOG`", "attached": "(`LOG`.`IDADMIN` <> 99999)" } ] } }, { "optimizing_distinct_group_by_order_by": { "simplifying_order_by": { "original_clause": "`LOG`.`FECHA` desc", "items": [ { "item": "`LOG`.`FECHA`" } ], "resulting_clause_is_simple": true, "resulting_clause": "`LOG`.`FECHA` desc" } } }, { "finalizing_table_conditions": [ { "table": "`LOG`", "original_table_condition": "(`LOG`.`IDADMIN` <> 99999)", "final_table_condition ": "(`LOG`.`IDADMIN` <> 99999)" } ] }, { "refine_plan": [ { "table": "`LOG`" } ] }, { "considering_tmp_tables": [ { "adding_sort_to_table": "LOG" } ] } ] } }, { "join_execution": { "select#": 1, "steps": [ { "sorting_table": "LOG", "filesort_information": [ { "direction": "desc", "expression": "`LOG`.`FECHA`" } ], "filesort_priority_queue_optimization": { "limit": 10, "chosen": true }, "filesort_execution": [ ], "filesort_summary": { "memory_available": 2097152, "key_size": 14, "row_size": 14, "max_rows_per_buffer": 11, "num_rows_estimate": 1087991, "num_rows_found": 1087991, "num_initial_chunks_spilled_to_disk": 0, "peak_memory_used": 242, "sort_algorithm": "std::sort", "unpacked_addon_fields": "using_priority_queue", "sort_mode": "" } } ] } } ] }