id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 36756 Using temporary; Using filesort
1 PRIMARY product_table ref barcode,Category barcode 4 grouped_store_orders_table.article 1 Using where
1 PRIMARY product_pack_sizes ref article,unit_of_measure article 4 trends.product_table.barcode 3
2 DERIVED orders_table ALL NULL NULL NULL NULL 2137680 Using temporary; Using filesort