3
10.64 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
191246
828863
630761
335978
803482
61313
797337
755420
797521
799463
536753
675253
813412
808965
817360
675990
716883
675964
607405
614733
784780
569531
802445
808958
764524
764507
130016
814887
714351
654088
607165
808080
770105
715445
798872
413535
492620
503418
618687
603507
572843
553285
386759
716765
463159
476203
449880
465472
495660
418968
526613
595214
553283
540395
553277
485285
400847
431803
573311
580280
453648
423433
458427
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (191246 , 828863 , 630761 , 335978 , 803482 , 61313 , 797337 , 755420 , 797521 , 799463 , 536753 , 675253 , 813412 , 808965 , 817360 , 675990 , 716883 , 675964 , 607405 , 614733 , 784780 , 569531 , 802445 , 808958 , 764524 , 764507 , 130016 , 814887 , 714351 , 654088 , 607165 , 808080 , 770105 , 715445 , 798872 , 413535 , 492620 , 503418 , 618687 , 603507 , 572843 , 553285 , 386759 , 716765 , 463159 , 476203 , 449880 , 465472 , 495660 , 418968 , 526613 , 595214 , 553283 , 540395 , 553277 , 485285 , 400847 , 431803 , 573311 , 580280 , 453648 , 423433 , 458427 );
Copy
4
3.39 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
61313
130016
191246
335978
386759
400847
413535
418968
423433
431803
449880
453648
458427
463159
465472
476203
485285
492620
495660
503418
526613
536753
540395
553277
553283
553285
569531
572843
573311
580280
595214
603507
607165
607405
614733
618687
630761
654088
675253
675964
675990
714351
715445
716765
716883
755420
764507
764524
770105
784780
797337
797521
798872
799463
802445
803482
808080
808958
808965
813412
814887
817360
828863
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (61313 , 130016 , 191246 , 335978 , 386759 , 400847 , 413535 , 418968 , 423433 , 431803 , 449880 , 453648 , 458427 , 463159 , 465472 , 476203 , 485285 , 492620 , 495660 , 503418 , 526613 , 536753 , 540395 , 553277 , 553283 , 553285 , 569531 , 572843 , 573311 , 580280 , 595214 , 603507 , 607165 , 607405 , 614733 , 618687 , 630761 , 654088 , 675253 , 675964 , 675990 , 714351 , 715445 , 716765 , 716883 , 755420 , 764507 , 764524 , 770105 , 784780 , 797337 , 797521 , 798872 , 799463 , 802445 , 803482 , 808080 , 808958 , 808965 , 813412 , 814887 , 817360 , 828863 );
Copy
5
96.67 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
61313
130016
191246
335978
386759
400847
413535
418968
423433
431803
449880
453648
458427
463159
465472
476203
485285
492620
495660
503418
526613
536753
540395
553277
553283
553285
569531
572843
573311
580280
595214
603507
607165
607405
614733
618687
630761
654088
675253
675964
675990
714351
715445
716765
716883
755420
764507
764524
770105
784780
797337
797521
798872
799463
802445
803482
808080
808958
808965
813412
814887
817360
828863
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (61313 , 130016 , 191246 , 335978 , 386759 , 400847 , 413535 , 418968 , 423433 , 431803 , 449880 , 453648 , 458427 , 463159 , 465472 , 476203 , 485285 , 492620 , 495660 , 503418 , 526613 , 536753 , 540395 , 553277 , 553283 , 553285 , 569531 , 572843 , 573311 , 580280 , 595214 , 603507 , 607165 , 607405 , 614733 , 618687 , 630761 , 654088 , 675253 , 675964 , 675990 , 714351 , 715445 , 716765 , 716883 , 755420 , 764507 , 764524 , 770105 , 784780 , 797337 , 797521 , 798872 , 799463 , 802445 , 803482 , 808080 , 808958 , 808965 , 813412 , 814887 , 817360 , 828863 );
Copy