38.99 ms (23.56%)
23
SELECT t0 . id AS id_1 , t0 . type AS type_2 , t0 . tag AS tag_3 , t0 . end AS end_4 , t0 . start AS start_5 , t0 . bike AS bike_6 FROM bike_tag t0 WHERE t0 . bike = ?
SELECT t0 . id AS id_1 , t0 . type AS type_2 , t0 . tag AS tag_3 , t0 . end AS end_4 , t0 . start AS start_5 , t0 . bike AS bike_6 FROM bike_tag t0 WHERE t0 . bike = 79 ;
Copy
38.20 ms (23.08%)
23
SELECT t0 . id AS id_1 , t0 . provider AS provider_2 , t0 . uid AS uid_3 , t0 . bike AS bike_4 FROM bike_provider t0 WHERE t0 . bike = ?
SELECT t0 . id AS id_1 , t0 . provider AS provider_2 , t0 . uid AS uid_3 , t0 . bike AS bike_4 FROM bike_provider t0 WHERE t0 . bike = 79 ;
Copy
38.15 ms (23.05%)
23
SELECT t0 . id AS id_1 , t0 . start AS start_2 , t0 . end AS end_3 , t0 . end_administrative AS end_administrative_4 , t0 . reason AS reason_5 , t0 . notes AS notes_6 , t0 . updated AS updated_7 , t0 . card AS card_8 , t0 . voucher AS voucher_9 , t0 . start_location AS start_location_10 , t0 . end_location AS end_location_11 , t0 . bike AS bike_12 , t13 . id AS id_14 , t13 . formula AS formula_15 , t13 . bikes_in_use AS bikes_in_use_16 , t13 . trip_id AS trip_id_17 FROM trip t0 LEFT JOIN trip_price_parameters t13 ON t13 . trip_id = t0 . id WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . start AS start_2 , t0 . end AS end_3 , t0 . end_administrative AS end_administrative_4 , t0 . reason AS reason_5 , t0 . notes AS notes_6 , t0 . updated AS updated_7 , t0 . card AS card_8 , t0 . voucher AS voucher_9 , t0 . start_location AS start_location_10 , t0 . end_location AS end_location_11 , t0 . bike AS bike_12 , t13 . id AS id_14 , t13 . formula AS formula_15 , t13 . bikes_in_use AS bikes_in_use_16 , t13 . trip_id AS trip_id_17 FROM trip t0 LEFT JOIN trip_price_parameters t13 ON t13 . trip_id = t0 . id WHERE t0 . id = 1297552 ;
Copy
37.62 ms (22.73%)
23
SELECT t0 . id AS id_1 , t0 . serial_number AS serial_number_2 , t0 . password AS password_3 , t0 . new_password AS new_password_4 , t0 . created AS created_5 , t0 . updated AS updated_6 , t0 . always_advertise AS always_advertise_7 , t0 . bike_id AS bike_id_8 FROM electronic_battery_pack_lock t0 WHERE t0 . bike_id = ?
SELECT t0 . id AS id_1 , t0 . serial_number AS serial_number_2 , t0 . password AS password_3 , t0 . new_password AS new_password_4 , t0 . created AS created_5 , t0 . updated AS updated_6 , t0 . always_advertise AS always_advertise_7 , t0 . bike_id AS bike_id_8 FROM electronic_battery_pack_lock t0 WHERE t0 . bike_id = 79 ;
Copy
10.57 ms (6.39%)
1
SELECT CASE WHEN b0_ . type = 2 THEN 1 WHEN b0_ . type = 1 THEN 2 WHEN b0_ . type = 3 THEN 3 ELSE 4 END AS sclr_0 , b0_ . id AS id_1 , b0_ . type AS type_2 , b0_ . generation AS generation_3 , b0_ . visual_id AS visual_id_4 , b0_ . start AS start_5 , b0_ . end AS end_6 , b0_ . state AS state_7 , b0_ . notes AS notes_8 , b1_ . id AS id_9 , b1_ . battery_voltage AS battery_voltage_10 , b1_ . battery_percentage AS battery_percentage_11 , b1_ . last_event AS last_event_12 , b1_ . location_lon AS location_lon_13 , b1_ . location_lat AS location_lat_14 , b1_ . estimated_range AS estimated_range_15 , b1_ . last_updated AS last_updated_16 , b1_ . availability_code AS availability_code_17 , b1_ . location_datetime AS location_datetime_18 , b1_ . availability_code_datetime AS availability_code_datetime_19 , b1_ . battery_percentage_last_updated AS battery_percentage_last_updated_20 , b1_ . estimated_range_last_updated AS estimated_range_last_updated_21 , b0_ . home_location AS home_location_22 , b0_ . last_trip AS last_trip_23 , b0_ . return_location_id AS return_location_id_24 , b1_ . bike_id AS bike_id_25 FROM bike b0_ LEFT JOIN bike_electric b1_ ON b0_ . id = b1_ . bike_id INNER JOIN trip t2_ ON (t2_ . id = b0_ . last_trip ) WHERE b0_ . state < > 2 AND (t2_ . end_location = ? OR (t2_ . end_location IS NULL AND t2_ . start_location = ? )) AND b0_ . return_location_id IS NULL GROUP BY b0_ . id ORDER BY sclr_0 ASC , b1_ . battery_percentage DESC , b0_ . visual_id ASC
SELECT CASE WHEN b0_ . type = 2 THEN 1 WHEN b0_ . type = 1 THEN 2 WHEN b0_ . type = 3 THEN 3 ELSE 4 END AS sclr_0 , b0_ . id AS id_1 , b0_ . type AS type_2 , b0_ . generation AS generation_3 , b0_ . visual_id AS visual_id_4 , b0_ . start AS start_5 , b0_ . end AS end_6 , b0_ . state AS state_7 , b0_ . notes AS notes_8 , b1_ . id AS id_9 , b1_ . battery_voltage AS battery_voltage_10 , b1_ . battery_percentage AS battery_percentage_11 , b1_ . last_event AS last_event_12 , b1_ . location_lon AS location_lon_13 , b1_ . location_lat AS location_lat_14 , b1_ . estimated_range AS estimated_range_15 , b1_ . last_updated AS last_updated_16 , b1_ . availability_code AS availability_code_17 , b1_ . location_datetime AS location_datetime_18 , b1_ . availability_code_datetime AS availability_code_datetime_19 , b1_ . battery_percentage_last_updated AS battery_percentage_last_updated_20 , b1_ . estimated_range_last_updated AS estimated_range_last_updated_21 , b0_ . home_location AS home_location_22 , b0_ . last_trip AS last_trip_23 , b0_ . return_location_id AS return_location_id_24 , b1_ . bike_id AS bike_id_25 FROM bike b0_ LEFT JOIN bike_electric b1_ ON b0_ . id = b1_ . bike_id INNER JOIN trip t2_ ON (t2_ . id = b0_ . last_trip ) WHERE b0_ . state < > 2 AND (t2_ . end_location = 64 OR (t2_ . end_location IS NULL AND t2_ . start_location = 64 )) AND b0_ . return_location_id IS NULL GROUP BY b0_ . id ORDER BY sclr_0 ASC , b1_ . battery_percentage DESC , b0_ . visual_id ASC ;
Copy
1.96 ms (1.19%)
1
SELECT t0 . id AS id_1 , t0 . external_id AS external_id_2 , t0 . type AS type_3 , t0 . state AS state_4 , t0 . name AS name_5 , t0 . latitude AS latitude_6 , t0 . longitude AS longitude_7 , t0 . radius AS radius_8 , t0 . lastseen AS lastseen_9 , t0 . ip AS ip_10 , t0 . capacity AS capacity_11 , t0 . notes AS notes_12 , t0 . created AS created_13 , t0 . retour_policy AS retour_policy_14 , t0 . acceptable_bikes AS acceptable_bikes_15 , t0 . zone AS zone_16 , t17 . num_bikes AS num_bikes_18 , t17 . num_in_use AS num_in_use_19 , t17 . num_available AS num_available_20 , t17 . num_defects AS num_defects_21 , t17 . num_retired AS num_retired_22 , t17 . available_electric_bikes AS available_electric_bikes_23 , t17 . unavailable_only_low_battery AS unavailable_only_low_battery_24 , t17 . available_cargo_bikes AS available_cargo_bikes_25 , t17 . available_city_bikes AS available_city_bikes_26 , t17 . location AS location_27 , t0 . pricing_zone_id AS pricing_zone_id_28 FROM location t0 LEFT JOIN location_stats t17 ON t17 . location = t0 . id WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . external_id AS external_id_2 , t0 . type AS type_3 , t0 . state AS state_4 , t0 . name AS name_5 , t0 . latitude AS latitude_6 , t0 . longitude AS longitude_7 , t0 . radius AS radius_8 , t0 . lastseen AS lastseen_9 , t0 . ip AS ip_10 , t0 . capacity AS capacity_11 , t0 . notes AS notes_12 , t0 . created AS created_13 , t0 . retour_policy AS retour_policy_14 , t0 . acceptable_bikes AS acceptable_bikes_15 , t0 . zone AS zone_16 , t17 . num_bikes AS num_bikes_18 , t17 . num_in_use AS num_in_use_19 , t17 . num_available AS num_available_20 , t17 . num_defects AS num_defects_21 , t17 . num_retired AS num_retired_22 , t17 . available_electric_bikes AS available_electric_bikes_23 , t17 . unavailable_only_low_battery AS unavailable_only_low_battery_24 , t17 . available_cargo_bikes AS available_cargo_bikes_25 , t17 . available_city_bikes AS available_city_bikes_26 , t17 . location AS location_27 , t0 . pricing_zone_id AS pricing_zone_id_28 FROM location t0 LEFT JOIN location_stats t17 ON t17 . location = t0 . id WHERE t0 . id = 64 ;
Copy