3
7.76 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
535478
537502
760488
805415
538238
543491
530319
533028
535469
692104
692117
678551
560801
643980
535471
531625
648547
747932
539903
538241
533041
651870
684361
747950
744899
744168
530316
533031
539915
693506
633929
630899
801865
523443
535495
529525
808614
738404
724711
535714
566145
636267
751430
473298
520365
532294
790464
467606
475737
645049
649133
566856
619158
619159
422356
452201
517262
613310
543189
525861
538242
449677
521241
559187
568822
521863
511469
614921
]
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 (535478 , 537502 , 760488 , 805415 , 538238 , 543491 , 530319 , 533028 , 535469 , 692104 , 692117 , 678551 , 560801 , 643980 , 535471 , 531625 , 648547 , 747932 , 539903 , 538241 , 533041 , 651870 , 684361 , 747950 , 744899 , 744168 , 530316 , 533031 , 539915 , 693506 , 633929 , 630899 , 801865 , 523443 , 535495 , 529525 , 808614 , 738404 , 724711 , 535714 , 566145 , 636267 , 751430 , 473298 , 520365 , 532294 , 790464 , 467606 , 475737 , 645049 , 649133 , 566856 , 619158 , 619159 , 422356 , 452201 , 517262 , 613310 , 543189 , 525861 , 538242 , 449677 , 521241 , 559187 , 568822 , 521863 , 511469 , 614921 );
Copy
4
2.57 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
422356
449677
452201
467606
473298
475737
511469
517262
520365
521241
521863
523443
525861
529525
530316
530319
531625
532294
533028
533031
533041
535469
535471
535478
535495
535714
537502
538238
538241
538242
539903
539915
543189
543491
559187
560801
566145
566856
568822
613310
614921
619158
619159
630899
633929
636267
643980
645049
648547
649133
651870
678551
684361
692104
692117
693506
724711
738404
744168
744899
747932
747950
751430
760488
790464
801865
805415
808614
]
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 (422356 , 449677 , 452201 , 467606 , 473298 , 475737 , 511469 , 517262 , 520365 , 521241 , 521863 , 523443 , 525861 , 529525 , 530316 , 530319 , 531625 , 532294 , 533028 , 533031 , 533041 , 535469 , 535471 , 535478 , 535495 , 535714 , 537502 , 538238 , 538241 , 538242 , 539903 , 539915 , 543189 , 543491 , 559187 , 560801 , 566145 , 566856 , 568822 , 613310 , 614921 , 619158 , 619159 , 630899 , 633929 , 636267 , 643980 , 645049 , 648547 , 649133 , 651870 , 678551 , 684361 , 692104 , 692117 , 693506 , 724711 , 738404 , 744168 , 744899 , 747932 , 747950 , 751430 , 760488 , 790464 , 801865 , 805415 , 808614 );
Copy
5
137.00 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
422356
449677
452201
467606
473298
475737
511469
517262
520365
521241
521863
523443
525861
529525
530316
530319
531625
532294
533028
533031
533041
535469
535471
535478
535495
535714
537502
538238
538241
538242
539903
539915
543189
543491
559187
560801
566145
566856
568822
613310
614921
619158
619159
630899
633929
636267
643980
645049
648547
649133
651870
678551
684361
692104
692117
693506
724711
738404
744168
744899
747932
747950
751430
760488
790464
801865
805415
808614
]
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 (422356 , 449677 , 452201 , 467606 , 473298 , 475737 , 511469 , 517262 , 520365 , 521241 , 521863 , 523443 , 525861 , 529525 , 530316 , 530319 , 531625 , 532294 , 533028 , 533031 , 533041 , 535469 , 535471 , 535478 , 535495 , 535714 , 537502 , 538238 , 538241 , 538242 , 539903 , 539915 , 543189 , 543491 , 559187 , 560801 , 566145 , 566856 , 568822 , 613310 , 614921 , 619158 , 619159 , 630899 , 633929 , 636267 , 643980 , 645049 , 648547 , 649133 , 651870 , 678551 , 684361 , 692104 , 692117 , 693506 , 724711 , 738404 , 744168 , 744899 , 747932 , 747950 , 751430 , 760488 , 790464 , 801865 , 805415 , 808614 );
Copy