4
10.68 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
598842
431093
587176
674770
526014
815078
789476
815128
743278
771164
611284
402673
602363
500434
743309
771161
396086
625521
776731
805585
532958
587578
625541
635988
625526
625519
600006
632642
526041
685955
385661
815480
770885
401658
411073
401946
43564
396018
573243
665328
408009
527801
404192
365348
425897
570160
489871
410817
388110
468672
406563
495895
416031
449891
456736
595769
426065
452156
482519
689614
391400
242589
502485
478108
]
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 (598842 , 431093 , 587176 , 674770 , 526014 , 815078 , 789476 , 815128 , 743278 , 771164 , 611284 , 402673 , 602363 , 500434 , 743309 , 771161 , 396086 , 625521 , 776731 , 805585 , 532958 , 587578 , 625541 , 635988 , 625526 , 625519 , 600006 , 632642 , 526041 , 685955 , 385661 , 815480 , 770885 , 401658 , 411073 , 401946 , 43564 , 396018 , 573243 , 665328 , 408009 , 527801 , 404192 , 365348 , 425897 , 570160 , 489871 , 410817 , 388110 , 468672 , 406563 , 495895 , 416031 , 449891 , 456736 , 595769 , 426065 , 452156 , 482519 , 689614 , 391400 , 242589 , 502485 , 478108 );
Copy
5
2.76 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
43564
242589
365348
385661
388110
391400
396018
396086
401658
401946
402673
404192
406563
408009
410817
411073
416031
425897
426065
431093
449891
452156
456736
468672
478108
482519
489871
495895
500434
502485
526014
526041
527801
532958
570160
573243
587176
587578
595769
598842
600006
602363
611284
625519
625521
625526
625541
632642
635988
665328
674770
685955
689614
743278
743309
770885
771161
771164
776731
789476
805585
815078
815128
815480
]
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 (43564 , 242589 , 365348 , 385661 , 388110 , 391400 , 396018 , 396086 , 401658 , 401946 , 402673 , 404192 , 406563 , 408009 , 410817 , 411073 , 416031 , 425897 , 426065 , 431093 , 449891 , 452156 , 456736 , 468672 , 478108 , 482519 , 489871 , 495895 , 500434 , 502485 , 526014 , 526041 , 527801 , 532958 , 570160 , 573243 , 587176 , 587578 , 595769 , 598842 , 600006 , 602363 , 611284 , 625519 , 625521 , 625526 , 625541 , 632642 , 635988 , 665328 , 674770 , 685955 , 689614 , 743278 , 743309 , 770885 , 771161 , 771164 , 776731 , 789476 , 805585 , 815078 , 815128 , 815480 );
Copy
6
82.86 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
43564
242589
365348
385661
388110
391400
396018
396086
401658
401946
402673
404192
406563
408009
410817
411073
416031
425897
426065
431093
449891
452156
456736
468672
478108
482519
489871
495895
500434
502485
526014
526041
527801
532958
570160
573243
587176
587578
595769
598842
600006
602363
611284
625519
625521
625526
625541
632642
635988
665328
674770
685955
689614
743278
743309
770885
771161
771164
776731
789476
805585
815078
815128
815480
]
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 (43564 , 242589 , 365348 , 385661 , 388110 , 391400 , 396018 , 396086 , 401658 , 401946 , 402673 , 404192 , 406563 , 408009 , 410817 , 411073 , 416031 , 425897 , 426065 , 431093 , 449891 , 452156 , 456736 , 468672 , 478108 , 482519 , 489871 , 495895 , 500434 , 502485 , 526014 , 526041 , 527801 , 532958 , 570160 , 573243 , 587176 , 587578 , 595769 , 598842 , 600006 , 602363 , 611284 , 625519 , 625521 , 625526 , 625541 , 632642 , 635988 , 665328 , 674770 , 685955 , 689614 , 743278 , 743309 , 770885 , 771161 , 771164 , 776731 , 789476 , 805585 , 815078 , 815128 , 815480 );
Copy