3
11.03 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
657214
610806
614035
752709
722379
547475
580585
552329
547452
668660
686130
512913
665957
669079
650094
416713
595329
568501
666422
534578
561019
704109
788978
695866
737578
394514
546316
808005
416697
660419
713142
660373
686106
620891
547468
669007
788953
561034
695868
669075
670368
724182
534839
547474
669038
671044
695870
561015
561040
605133
601203
410346
416752
534764
738814
561038
660399
568499
574388
669058
590255
577903
415978
604640
458793
]
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 (657214 , 610806 , 614035 , 752709 , 722379 , 547475 , 580585 , 552329 , 547452 , 668660 , 686130 , 512913 , 665957 , 669079 , 650094 , 416713 , 595329 , 568501 , 666422 , 534578 , 561019 , 704109 , 788978 , 695866 , 737578 , 394514 , 546316 , 808005 , 416697 , 660419 , 713142 , 660373 , 686106 , 620891 , 547468 , 669007 , 788953 , 561034 , 695868 , 669075 , 670368 , 724182 , 534839 , 547474 , 669038 , 671044 , 695870 , 561015 , 561040 , 605133 , 601203 , 410346 , 416752 , 534764 , 738814 , 561038 , 660399 , 568499 , 574388 , 669058 , 590255 , 577903 , 415978 , 604640 , 458793 );
Copy
4
3.04 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
394514
410346
415978
416697
416713
416752
458793
512913
534578
534764
534839
546316
547452
547468
547474
547475
552329
561015
561019
561034
561038
561040
568499
568501
574388
577903
580585
590255
595329
601203
604640
605133
610806
614035
620891
650094
657214
660373
660399
660419
665957
666422
668660
669007
669038
669058
669075
669079
670368
671044
686106
686130
695866
695868
695870
704109
713142
722379
724182
737578
738814
752709
788953
788978
808005
]
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 (394514 , 410346 , 415978 , 416697 , 416713 , 416752 , 458793 , 512913 , 534578 , 534764 , 534839 , 546316 , 547452 , 547468 , 547474 , 547475 , 552329 , 561015 , 561019 , 561034 , 561038 , 561040 , 568499 , 568501 , 574388 , 577903 , 580585 , 590255 , 595329 , 601203 , 604640 , 605133 , 610806 , 614035 , 620891 , 650094 , 657214 , 660373 , 660399 , 660419 , 665957 , 666422 , 668660 , 669007 , 669038 , 669058 , 669075 , 669079 , 670368 , 671044 , 686106 , 686130 , 695866 , 695868 , 695870 , 704109 , 713142 , 722379 , 724182 , 737578 , 738814 , 752709 , 788953 , 788978 , 808005 );
Copy
5
87.21 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
394514
410346
415978
416697
416713
416752
458793
512913
534578
534764
534839
546316
547452
547468
547474
547475
552329
561015
561019
561034
561038
561040
568499
568501
574388
577903
580585
590255
595329
601203
604640
605133
610806
614035
620891
650094
657214
660373
660399
660419
665957
666422
668660
669007
669038
669058
669075
669079
670368
671044
686106
686130
695866
695868
695870
704109
713142
722379
724182
737578
738814
752709
788953
788978
808005
]
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 (394514 , 410346 , 415978 , 416697 , 416713 , 416752 , 458793 , 512913 , 534578 , 534764 , 534839 , 546316 , 547452 , 547468 , 547474 , 547475 , 552329 , 561015 , 561019 , 561034 , 561038 , 561040 , 568499 , 568501 , 574388 , 577903 , 580585 , 590255 , 595329 , 601203 , 604640 , 605133 , 610806 , 614035 , 620891 , 650094 , 657214 , 660373 , 660399 , 660419 , 665957 , 666422 , 668660 , 669007 , 669038 , 669058 , 669075 , 669079 , 670368 , 671044 , 686106 , 686130 , 695866 , 695868 , 695870 , 704109 , 713142 , 722379 , 724182 , 737578 , 738814 , 752709 , 788953 , 788978 , 808005 );
Copy