1
2.57 ms
SELECT id , name , parent_id FROM goods . category
SELECT id , name , parent_id FROM goods . category ;
Copy
2
2.14 ms
SELECT MIN (p . price ) AS min_price , MAX (p . price ) AS max_price FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN (? , ? , ? , ? ))
Parameters :
[
"d4982eaa-8475-417a-9609-1281e8d65780 "
"958f909b-c59c-42e5-b7b7-c4a399d2fe0c "
"ea168356-1e34-45df-99c9-d82ebd6824bf "
"790916a7-bd91-48dd-886b-adafad846b86 "
]
SELECT MIN (p . price ) AS min_price , MAX (p . price ) AS max_price FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN ('d4982eaa-8475-417a-9609-1281e8d65780' , '958f909b-c59c-42e5-b7b7-c4a399d2fe0c' , 'ea168356-1e34-45df-99c9-d82ebd6824bf' , '790916a7-bd91-48dd-886b-adafad846b86' ));
Copy
3
1.19 ms
SELECT p . id FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN (? , ? , ? , ? )) AND (p . price > = ? ) AND (p . price < = ? ) ORDER BY p . date_add DESC LIMIT 20
Parameters :
[
"d4982eaa-8475-417a-9609-1281e8d65780 "
"958f909b-c59c-42e5-b7b7-c4a399d2fe0c "
"ea168356-1e34-45df-99c9-d82ebd6824bf "
"790916a7-bd91-48dd-886b-adafad846b86 "
0
1000000
]
SELECT p . id FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN ('d4982eaa-8475-417a-9609-1281e8d65780' , '958f909b-c59c-42e5-b7b7-c4a399d2fe0c' , 'ea168356-1e34-45df-99c9-d82ebd6824bf' , '790916a7-bd91-48dd-886b-adafad846b86' )) AND (p . price > = 0 ) AND (p . price < = 1000000 ) ORDER BY p . date_add DESC LIMIT 20 ;
Copy
4
0.42 ms
SELECT MIN (p . price ) AS min_price , MAX (p . price ) AS max_price FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN (? , ? , ? , ? ))
Parameters :
[
"d4982eaa-8475-417a-9609-1281e8d65780 "
"958f909b-c59c-42e5-b7b7-c4a399d2fe0c "
"ea168356-1e34-45df-99c9-d82ebd6824bf "
"790916a7-bd91-48dd-886b-adafad846b86 "
]
SELECT MIN (p . price ) AS min_price , MAX (p . price ) AS max_price FROM goods . proposal p WHERE (NOT p . is_archive ) AND (NOT p . is_private ) AND (p . category_id IN ('d4982eaa-8475-417a-9609-1281e8d65780' , '958f909b-c59c-42e5-b7b7-c4a399d2fe0c' , 'ea168356-1e34-45df-99c9-d82ebd6824bf' , '790916a7-bd91-48dd-886b-adafad846b86' ));
Copy
5
0.93 ms
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = ?
Parameters :
[
"d74dd3d4-8819-4bbd-beda-44591753650c "
]
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = 'd74dd3d4-8819-4bbd-beda-44591753650c' ;
Copy
6
1.21 ms
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = ? GROUP BY proposal_id
Parameters :
[
"d74dd3d4-8819-4bbd-beda-44591753650c "
]
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = 'd74dd3d4-8819-4bbd-beda-44591753650c' GROUP BY proposal_id ;
Copy
7
0.41 ms
SELECT COUNT (id ) AS new FROM trade . auction_offer WHERE (proposal_id = ? ) AND (state = 0 ) GROUP BY proposal_id
Parameters :
[
"d74dd3d4-8819-4bbd-beda-44591753650c "
]
SELECT COUNT (id ) AS new FROM trade . auction_offer WHERE (proposal_id = 'd74dd3d4-8819-4bbd-beda-44591753650c' ) AND (state = 0 ) GROUP BY proposal_id ;
Copy
8
0.51 ms
SELECT cnt FROM counters . proposal_view WHERE id = ?
Parameters :
[
"d74dd3d4-8819-4bbd-beda-44591753650c "
]
SELECT cnt FROM counters . proposal_view WHERE id = 'd74dd3d4-8819-4bbd-beda-44591753650c' ;
Copy
9
0.95 ms
SELECT p0_ . id AS id_0 , p0_ . name AS name_1 , p0_ . surname AS surname_2 , p0_ . patronymic AS patronymic_3 , p0_ . gender AS gender_4 , p0_ . birthdate AS birthdate_5 , p0_ . email AS email_6 , p0_ . phone AS phone_7 , p0_ . avatar AS avatar_8 , p0_ . user_id AS user_id_9 FROM account . person p0_ WHERE p0_ . user_id = ?
SELECT p0_ . id AS id_0 , p0_ . name AS name_1 , p0_ . surname AS surname_2 , p0_ . patronymic AS patronymic_3 , p0_ . gender AS gender_4 , p0_ . birthdate AS birthdate_5 , p0_ . email AS email_6 , p0_ . phone AS phone_7 , p0_ . avatar AS avatar_8 , p0_ . user_id AS user_id_9 FROM account . person p0_ WHERE p0_ . user_id = 'a94c1907-f056-4542-a3de-aacdd561b656' ;
Copy
10
0.42 ms
SELECT avatar FROM account . person WHERE user_id = ?
Parameters :
[
"a94c1907-f056-4542-a3de-aacdd561b656 "
]
SELECT avatar FROM account . person WHERE user_id = 'a94c1907-f056-4542-a3de-aacdd561b656' ;
Copy
11
3.05 ms
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = ? ORDER BY pg . id ASC , p . id ASC
Parameters :
[
"d74dd3d4-8819-4bbd-beda-44591753650c "
]
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = 'd74dd3d4-8819-4bbd-beda-44591753650c' ORDER BY pg . id ASC , p . id ASC ;
Copy
12
0.63 ms
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = ?
Parameters :
[
"aff45390-054e-4a13-9de2-2036dd21bd6a "
]
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = 'aff45390-054e-4a13-9de2-2036dd21bd6a' ;
Copy
13
0.43 ms
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = ? GROUP BY proposal_id
Parameters :
[
"aff45390-054e-4a13-9de2-2036dd21bd6a "
]
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = 'aff45390-054e-4a13-9de2-2036dd21bd6a' GROUP BY proposal_id ;
Copy
14
0.22 ms
SELECT cnt FROM counters . proposal_view WHERE id = ?
Parameters :
[
"aff45390-054e-4a13-9de2-2036dd21bd6a "
]
SELECT cnt FROM counters . proposal_view WHERE id = 'aff45390-054e-4a13-9de2-2036dd21bd6a' ;
Copy
15
0.27 ms
SELECT p0_ . id AS id_0 , p0_ . name AS name_1 , p0_ . surname AS surname_2 , p0_ . patronymic AS patronymic_3 , p0_ . gender AS gender_4 , p0_ . birthdate AS birthdate_5 , p0_ . email AS email_6 , p0_ . phone AS phone_7 , p0_ . avatar AS avatar_8 , p0_ . user_id AS user_id_9 FROM account . person p0_ WHERE p0_ . user_id = ?
SELECT p0_ . id AS id_0 , p0_ . name AS name_1 , p0_ . surname AS surname_2 , p0_ . patronymic AS patronymic_3 , p0_ . gender AS gender_4 , p0_ . birthdate AS birthdate_5 , p0_ . email AS email_6 , p0_ . phone AS phone_7 , p0_ . avatar AS avatar_8 , p0_ . user_id AS user_id_9 FROM account . person p0_ WHERE p0_ . user_id = 'e2350144-be17-4130-bca9-2f200ed36640' ;
Copy
16
0.20 ms
SELECT avatar FROM account . person WHERE user_id = ?
Parameters :
[
"e2350144-be17-4130-bca9-2f200ed36640 "
]
SELECT avatar FROM account . person WHERE user_id = 'e2350144-be17-4130-bca9-2f200ed36640' ;
Copy
17
1.80 ms
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = ? ORDER BY pg . id ASC , p . id ASC
Parameters :
[
"aff45390-054e-4a13-9de2-2036dd21bd6a "
]
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = 'aff45390-054e-4a13-9de2-2036dd21bd6a' ORDER BY pg . id ASC , p . id ASC ;
Copy
18
0.36 ms
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = ?
Parameters :
[
"bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21 "
]
SELECT t0 . id AS id_1 , t0 . name AS name_2 , t0 . price AS price_3 , t0 . description AS description_4 , t0 . is_archive AS is_archive_5 , t0 . date_add AS date_add_6 , t0 . end_date AS end_date_7 , t0 . is_private AS is_private_8 , t0 . items_count AS items_count_9 , t0 . delivery_method AS delivery_method_10 , t0 . payload AS payload_11 , t0 . category_id AS category_id_12 , t0 . item_id AS item_id_13 , t0 . owner_id AS owner_id_14 FROM goods . proposal t0 WHERE t0 . id = 'bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21' ;
Copy
19
0.35 ms
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = ? GROUP BY proposal_id
Parameters :
[
"bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21 "
]
SELECT COUNT (id ) AS total , MIN (price ):: int AS start_price , MAX (price ):: int AS end_price FROM trade . auction_offer WHERE proposal_id = 'bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21' GROUP BY proposal_id ;
Copy
20
0.20 ms
SELECT cnt FROM counters . proposal_view WHERE id = ?
Parameters :
[
"bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21 "
]
SELECT cnt FROM counters . proposal_view WHERE id = 'bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21' ;
Copy
21
1.76 ms
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = ? ORDER BY pg . id ASC , p . id ASC
Parameters :
[
"bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21 "
]
SELECT pg . id AS pg_id , pg . name AS pg_name , p . name AS p_name , p . in_short AS p_short , pp . value AS value FROM goods . proposal_parameter pp INNER JOIN goods . parameter p ON p . id = pp . parameter_id INNER JOIN goods . parameters_group pg ON pg . id = p . parameters_group_id WHERE pp . proposal_id = 'bcd81f86-a9ae-4b23-bbc3-40aeb0e97f21' ORDER BY pg . id ASC , p . id ASC ;
Copy