825.58 ms (87.63%)
1
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
295700
305892
372346
378046
384881
386593
389756
397208
400434
400446
402090
402252
426547
462204
471527
472132
476955
478381
487926
493184
504456
508163
511418
513326
515111
515183
516793
520277
534752
551066
556405
557510
559044
576006
580466
581393
585603
586448
591863
594964
610021
622197
623616
635882
663482
668740
702672
722688
722706
734613
735516
738305
759567
766539
770980
782806
788611
795077
796513
807938
812155
820366
825258
]
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 (295700 , 305892 , 372346 , 378046 , 384881 , 386593 , 389756 , 397208 , 400434 , 400446 , 402090 , 402252 , 426547 , 462204 , 471527 , 472132 , 476955 , 478381 , 487926 , 493184 , 504456 , 508163 , 511418 , 513326 , 515111 , 515183 , 516793 , 520277 , 534752 , 551066 , 556405 , 557510 , 559044 , 576006 , 580466 , 581393 , 585603 , 586448 , 591863 , 594964 , 610021 , 622197 , 623616 , 635882 , 663482 , 668740 , 702672 , 722688 , 722706 , 734613 , 735516 , 738305 , 759567 , 766539 , 770980 , 782806 , 788611 , 795077 , 796513 , 807938 , 812155 , 820366 , 825258 );
Copy
89.77 ms (9.53%)
1
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
295700
305892
372346
378046
384881
386593
389756
397208
400434
400446
402090
402252
426547
462204
471527
472132
476955
478381
487926
493184
504456
508163
511418
513326
515111
515183
516793
520277
534752
551066
556405
557510
559044
576006
580466
581393
585603
586448
591863
594964
610021
622197
623616
635882
663482
668740
702672
722688
722706
734613
735516
738305
759567
766539
770980
782806
788611
795077
796513
807938
812155
820366
825258
]
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 (295700 , 305892 , 372346 , 378046 , 384881 , 386593 , 389756 , 397208 , 400434 , 400446 , 402090 , 402252 , 426547 , 462204 , 471527 , 472132 , 476955 , 478381 , 487926 , 493184 , 504456 , 508163 , 511418 , 513326 , 515111 , 515183 , 516793 , 520277 , 534752 , 551066 , 556405 , 557510 , 559044 , 576006 , 580466 , 581393 , 585603 , 586448 , 591863 , 594964 , 610021 , 622197 , 623616 , 635882 , 663482 , 668740 , 702672 , 722688 , 722706 , 734613 , 735516 , 738305 , 759567 , 766539 , 770980 , 782806 , 788611 , 795077 , 796513 , 807938 , 812155 , 820366 , 825258 );
Copy
13.37 ms (1.42%)
1
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
515111
812155
400434
825258
795077
738305
820366
722688
770980
591863
796513
766539
389756
400446
508163
807938
702672
295700
472132
386593
305892
735516
372346
580466
668740
788611
402252
581393
635882
734613
551066
610021
759567
384881
520277
511418
397208
402090
663482
722706
586448
622197
782806
478381
516793
462204
557510
576006
585603
513326
426547
378046
623616
471527
476955
534752
515183
493184
556405
487926
594964
504456
559044
]
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 (515111 , 812155 , 400434 , 825258 , 795077 , 738305 , 820366 , 722688 , 770980 , 591863 , 796513 , 766539 , 389756 , 400446 , 508163 , 807938 , 702672 , 295700 , 472132 , 386593 , 305892 , 735516 , 372346 , 580466 , 668740 , 788611 , 402252 , 581393 , 635882 , 734613 , 551066 , 610021 , 759567 , 384881 , 520277 , 511418 , 397208 , 402090 , 663482 , 722706 , 586448 , 622197 , 782806 , 478381 , 516793 , 462204 , 557510 , 576006 , 585603 , 513326 , 426547 , 378046 , 623616 , 471527 , 476955 , 534752 , 515183 , 493184 , 556405 , 487926 , 594964 , 504456 , 559044 );
Copy