3
44.04 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
750124
701515
767314
704629
498685
488426
507481
648744
773369
738566
794847
776098
775090
759014
605764
614588
563729
621165
487418
808077
466445
616779
621737
617205
655736
468517
555269
571771
539444
675588
595449
622408
668398
499867
435792
597012
501981
580151
654552
539336
619725
474818
656009
464385
616738
548340
529266
663930
618923
598807
613867
530064
524323
598711
622778
512050
684305
404584
603810
657438
653238
528712
598654
465336
527908
486904
]
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 (750124 , 701515 , 767314 , 704629 , 498685 , 488426 , 507481 , 648744 , 773369 , 738566 , 794847 , 776098 , 775090 , 759014 , 605764 , 614588 , 563729 , 621165 , 487418 , 808077 , 466445 , 616779 , 621737 , 617205 , 655736 , 468517 , 555269 , 571771 , 539444 , 675588 , 595449 , 622408 , 668398 , 499867 , 435792 , 597012 , 501981 , 580151 , 654552 , 539336 , 619725 , 474818 , 656009 , 464385 , 616738 , 548340 , 529266 , 663930 , 618923 , 598807 , 613867 , 530064 , 524323 , 598711 , 622778 , 512050 , 684305 , 404584 , 603810 , 657438 , 653238 , 528712 , 598654 , 465336 , 527908 , 486904 );
Copy
4
4.21 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
404584
435792
464385
465336
466445
468517
474818
486904
487418
488426
498685
499867
501981
507481
512050
524323
527908
528712
529266
530064
539336
539444
548340
555269
563729
571771
580151
595449
597012
598654
598711
598807
603810
605764
613867
614588
616738
616779
617205
618923
619725
621165
621737
622408
622778
648744
653238
654552
655736
656009
657438
663930
668398
675588
684305
701515
704629
738566
750124
759014
767314
773369
775090
776098
794847
808077
]
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 (404584 , 435792 , 464385 , 465336 , 466445 , 468517 , 474818 , 486904 , 487418 , 488426 , 498685 , 499867 , 501981 , 507481 , 512050 , 524323 , 527908 , 528712 , 529266 , 530064 , 539336 , 539444 , 548340 , 555269 , 563729 , 571771 , 580151 , 595449 , 597012 , 598654 , 598711 , 598807 , 603810 , 605764 , 613867 , 614588 , 616738 , 616779 , 617205 , 618923 , 619725 , 621165 , 621737 , 622408 , 622778 , 648744 , 653238 , 654552 , 655736 , 656009 , 657438 , 663930 , 668398 , 675588 , 684305 , 701515 , 704629 , 738566 , 750124 , 759014 , 767314 , 773369 , 775090 , 776098 , 794847 , 808077 );
Copy
5
87.30 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
404584
435792
464385
465336
466445
468517
474818
486904
487418
488426
498685
499867
501981
507481
512050
524323
527908
528712
529266
530064
539336
539444
548340
555269
563729
571771
580151
595449
597012
598654
598711
598807
603810
605764
613867
614588
616738
616779
617205
618923
619725
621165
621737
622408
622778
648744
653238
654552
655736
656009
657438
663930
668398
675588
684305
701515
704629
738566
750124
759014
767314
773369
775090
776098
794847
808077
]
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 (404584 , 435792 , 464385 , 465336 , 466445 , 468517 , 474818 , 486904 , 487418 , 488426 , 498685 , 499867 , 501981 , 507481 , 512050 , 524323 , 527908 , 528712 , 529266 , 530064 , 539336 , 539444 , 548340 , 555269 , 563729 , 571771 , 580151 , 595449 , 597012 , 598654 , 598711 , 598807 , 603810 , 605764 , 613867 , 614588 , 616738 , 616779 , 617205 , 618923 , 619725 , 621165 , 621737 , 622408 , 622778 , 648744 , 653238 , 654552 , 655736 , 656009 , 657438 , 663930 , 668398 , 675588 , 684305 , 701515 , 704629 , 738566 , 750124 , 759014 , 767314 , 773369 , 775090 , 776098 , 794847 , 808077 );
Copy