1
0.42 ms
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = '' LIMIT 1 ;
Copy
2
0.20 ms
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = ?
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = 2 ;
Copy
3
0.08 ms
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = '' LIMIT 1 ;
Copy
4
0.06 ms
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = '' LIMIT 1 ;
Copy
5
0.07 ms
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = ?
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = 2 ;
Copy
6
0.07 ms
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = '' LIMIT 1 ;
Copy
7
0.10 ms
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = ?
SELECT p0_ . id AS id_0 , s1_ . quantity AS quantity_1 , p0_ . name AS name_2 , p0_ . price AS price_3 , p0_ . price * s1_ . quantity AS sclr_4 FROM shopping_cart_product s1_ INNER JOIN product p0_ ON s1_ . product_id = p0_ . id WHERE s1_ . shoppingcart_id = 2 ;
Copy
8
0.06 ms
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . state AS state_2 , t0 . session_id AS session_id_3 , t0 . user_id_id AS user_id_id_4 FROM shopping_cart t0 WHERE t0 . session_id = '' LIMIT 1 ;
Copy
9
0.08 ms
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . stock AS stock_3 , t0 . price AS price_4 , t0 . description AS description_5 FROM product t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . stock AS stock_3 , t0 . price AS price_4 , t0 . description AS description_5 FROM product t0 WHERE t0 . id = '8' ;
Copy
10
0.09 ms
SELECT t0 . id AS id_1 , t0 . quantity AS quantity_2 , t0 . shoppingcart_id AS shoppingcart_id_3 , t0 . product_id AS product_id_4 FROM shopping_cart_product t0 WHERE t0 . shoppingcart_id = ? AND t0 . product_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . quantity AS quantity_2 , t0 . shoppingcart_id AS shoppingcart_id_3 , t0 . product_id AS product_id_4 FROM shopping_cart_product t0 WHERE t0 . shoppingcart_id = 2 AND t0 . product_id = 8 LIMIT 1 ;
Copy
11
0.07 ms
SELECT t0 . id AS id_1 , t0 . quantity AS quantity_2 , t0 . shoppingcart_id AS shoppingcart_id_3 , t0 . product_id AS product_id_4 FROM shopping_cart_product t0 WHERE t0 . shoppingcart_id = ? AND t0 . product_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . quantity AS quantity_2 , t0 . shoppingcart_id AS shoppingcart_id_3 , t0 . product_id AS product_id_4 FROM shopping_cart_product t0 WHERE t0 . shoppingcart_id = 2 AND t0 . product_id = 8 LIMIT 1 ;
Copy
12
0.05 ms
"START TRANSACTION"
"START TRANSACTION" ;
Copy
13
0.18 ms
INSERT INTO shopping_cart_product (quantity , shoppingcart_id , product_id ) VALUES (? , ? , ? )
INSERT INTO shopping_cart_product (quantity , shoppingcart_id , product_id ) VALUES (1 , 2 , 8 );
Copy
14
3.62 ms
"COMMIT"