3
11.52 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
816794
815950
781685
589687
591283
718910
819638
387377
820313
411701
463698
645934
816495
669747
566940
546715
794872
560093
665274
808151
397008
562960
577138
781923
601402
460262
460639
517002
397372
582548
807553
489457
546112
513728
526191
663451
518750
515205
395688
586572
799585
801577
401223
486815
591306
445836
486533
555144
561415
484402
522346
665113
666117
590753
401953
516886
490920
457114
580647
665383
469061
512433
430979
427346
460669
]
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 (816794 , 815950 , 781685 , 589687 , 591283 , 718910 , 819638 , 387377 , 820313 , 411701 , 463698 , 645934 , 816495 , 669747 , 566940 , 546715 , 794872 , 560093 , 665274 , 808151 , 397008 , 562960 , 577138 , 781923 , 601402 , 460262 , 460639 , 517002 , 397372 , 582548 , 807553 , 489457 , 546112 , 513728 , 526191 , 663451 , 518750 , 515205 , 395688 , 586572 , 799585 , 801577 , 401223 , 486815 , 591306 , 445836 , 486533 , 555144 , 561415 , 484402 , 522346 , 665113 , 666117 , 590753 , 401953 , 516886 , 490920 , 457114 , 580647 , 665383 , 469061 , 512433 , 430979 , 427346 , 460669 );
Copy
4
3.09 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
387377
395688
397008
397372
401223
401953
411701
427346
430979
445836
457114
460262
460639
460669
463698
469061
484402
486533
486815
489457
490920
512433
513728
515205
516886
517002
518750
522346
526191
546112
546715
555144
560093
561415
562960
566940
577138
580647
582548
586572
589687
590753
591283
591306
601402
645934
663451
665113
665274
665383
666117
669747
718910
781685
781923
794872
799585
801577
807553
808151
815950
816495
816794
819638
820313
]
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 (387377 , 395688 , 397008 , 397372 , 401223 , 401953 , 411701 , 427346 , 430979 , 445836 , 457114 , 460262 , 460639 , 460669 , 463698 , 469061 , 484402 , 486533 , 486815 , 489457 , 490920 , 512433 , 513728 , 515205 , 516886 , 517002 , 518750 , 522346 , 526191 , 546112 , 546715 , 555144 , 560093 , 561415 , 562960 , 566940 , 577138 , 580647 , 582548 , 586572 , 589687 , 590753 , 591283 , 591306 , 601402 , 645934 , 663451 , 665113 , 665274 , 665383 , 666117 , 669747 , 718910 , 781685 , 781923 , 794872 , 799585 , 801577 , 807553 , 808151 , 815950 , 816495 , 816794 , 819638 , 820313 );
Copy
5
74.95 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
387377
395688
397008
397372
401223
401953
411701
427346
430979
445836
457114
460262
460639
460669
463698
469061
484402
486533
486815
489457
490920
512433
513728
515205
516886
517002
518750
522346
526191
546112
546715
555144
560093
561415
562960
566940
577138
580647
582548
586572
589687
590753
591283
591306
601402
645934
663451
665113
665274
665383
666117
669747
718910
781685
781923
794872
799585
801577
807553
808151
815950
816495
816794
819638
820313
]
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 (387377 , 395688 , 397008 , 397372 , 401223 , 401953 , 411701 , 427346 , 430979 , 445836 , 457114 , 460262 , 460639 , 460669 , 463698 , 469061 , 484402 , 486533 , 486815 , 489457 , 490920 , 512433 , 513728 , 515205 , 516886 , 517002 , 518750 , 522346 , 526191 , 546112 , 546715 , 555144 , 560093 , 561415 , 562960 , 566940 , 577138 , 580647 , 582548 , 586572 , 589687 , 590753 , 591283 , 591306 , 601402 , 645934 , 663451 , 665113 , 665274 , 665383 , 666117 , 669747 , 718910 , 781685 , 781923 , 794872 , 799585 , 801577 , 807553 , 808151 , 815950 , 816495 , 816794 , 819638 , 820313 );
Copy