3
11.81 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
461935
469403
773392
719957
511799
775228
800380
771863
794752
731247
757298
584145
759914
569971
620614
646085
786988
761521
795313
692428
796139
740288
773419
518366
516721
542340
664712
779730
758593
719916
565557
788858
731311
801253
415529
717664
796180
795300
731224
795687
796153
792938
555685
812854
614689
574643
805502
761048
632096
520790
509123
511481
576516
427946
417841
435472
606697
649163
577816
423464
624375
455096
450579
521989
444963
621352
444068
620295
427981
689013
]
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 (461935 , 469403 , 773392 , 719957 , 511799 , 775228 , 800380 , 771863 , 794752 , 731247 , 757298 , 584145 , 759914 , 569971 , 620614 , 646085 , 786988 , 761521 , 795313 , 692428 , 796139 , 740288 , 773419 , 518366 , 516721 , 542340 , 664712 , 779730 , 758593 , 719916 , 565557 , 788858 , 731311 , 801253 , 415529 , 717664 , 796180 , 795300 , 731224 , 795687 , 796153 , 792938 , 555685 , 812854 , 614689 , 574643 , 805502 , 761048 , 632096 , 520790 , 509123 , 511481 , 576516 , 427946 , 417841 , 435472 , 606697 , 649163 , 577816 , 423464 , 624375 , 455096 , 450579 , 521989 , 444963 , 621352 , 444068 , 620295 , 427981 , 689013 );
Copy
4
2.28 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
415529
417841
423464
427946
427981
435472
444068
444963
450579
455096
461935
469403
509123
511481
511799
516721
518366
520790
521989
542340
555685
565557
569971
574643
576516
577816
584145
606697
614689
620295
620614
621352
624375
632096
646085
649163
664712
689013
692428
717664
719916
719957
731224
731247
731311
740288
757298
758593
759914
761048
761521
771863
773392
773419
775228
779730
786988
788858
792938
794752
795300
795313
795687
796139
796153
796180
800380
801253
805502
812854
]
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 (415529 , 417841 , 423464 , 427946 , 427981 , 435472 , 444068 , 444963 , 450579 , 455096 , 461935 , 469403 , 509123 , 511481 , 511799 , 516721 , 518366 , 520790 , 521989 , 542340 , 555685 , 565557 , 569971 , 574643 , 576516 , 577816 , 584145 , 606697 , 614689 , 620295 , 620614 , 621352 , 624375 , 632096 , 646085 , 649163 , 664712 , 689013 , 692428 , 717664 , 719916 , 719957 , 731224 , 731247 , 731311 , 740288 , 757298 , 758593 , 759914 , 761048 , 761521 , 771863 , 773392 , 773419 , 775228 , 779730 , 786988 , 788858 , 792938 , 794752 , 795300 , 795313 , 795687 , 796139 , 796153 , 796180 , 800380 , 801253 , 805502 , 812854 );
Copy
5
88.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
415529
417841
423464
427946
427981
435472
444068
444963
450579
455096
461935
469403
509123
511481
511799
516721
518366
520790
521989
542340
555685
565557
569971
574643
576516
577816
584145
606697
614689
620295
620614
621352
624375
632096
646085
649163
664712
689013
692428
717664
719916
719957
731224
731247
731311
740288
757298
758593
759914
761048
761521
771863
773392
773419
775228
779730
786988
788858
792938
794752
795300
795313
795687
796139
796153
796180
800380
801253
805502
812854
]
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 (415529 , 417841 , 423464 , 427946 , 427981 , 435472 , 444068 , 444963 , 450579 , 455096 , 461935 , 469403 , 509123 , 511481 , 511799 , 516721 , 518366 , 520790 , 521989 , 542340 , 555685 , 565557 , 569971 , 574643 , 576516 , 577816 , 584145 , 606697 , 614689 , 620295 , 620614 , 621352 , 624375 , 632096 , 646085 , 649163 , 664712 , 689013 , 692428 , 717664 , 719916 , 719957 , 731224 , 731247 , 731311 , 740288 , 757298 , 758593 , 759914 , 761048 , 761521 , 771863 , 773392 , 773419 , 775228 , 779730 , 786988 , 788858 , 792938 , 794752 , 795300 , 795313 , 795687 , 796139 , 796153 , 796180 , 800380 , 801253 , 805502 , 812854 );
Copy