110.70 ms (73.75%)
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
416128
422426
440662
441971
452429
453478
453547
453920
453987
455410
462057
468990
469833
481947
488231
492965
499000
507702
511453
517417
517596
518586
519598
524859
529115
534926
542784
546116
556482
564575
578731
578733
578766
578803
582745
617346
620473
626015
626478
648176
653110
675492
709266
709716
715163
715417
715935
725219
728255
729181
735454
740166
746101
747981
756304
767023
768648
773977
778481
794433
794754
807842
813471
814263
823682
824790
825388
]
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 (416128 , 422426 , 440662 , 441971 , 452429 , 453478 , 453547 , 453920 , 453987 , 455410 , 462057 , 468990 , 469833 , 481947 , 488231 , 492965 , 499000 , 507702 , 511453 , 517417 , 517596 , 518586 , 519598 , 524859 , 529115 , 534926 , 542784 , 546116 , 556482 , 564575 , 578731 , 578733 , 578766 , 578803 , 582745 , 617346 , 620473 , 626015 , 626478 , 648176 , 653110 , 675492 , 709266 , 709716 , 715163 , 715417 , 715935 , 725219 , 728255 , 729181 , 735454 , 740166 , 746101 , 747981 , 756304 , 767023 , 768648 , 773977 , 778481 , 794433 , 794754 , 807842 , 813471 , 814263 , 823682 , 824790 , 825388 );
Copy
9.75 ms (6.49%)
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
653110
778481
725219
747981
756304
715163
825388
794433
794754
740166
824790
453920
488231
582745
709716
648176
715935
768648
735454
499000
462057
529115
578766
578731
767023
709266
455410
441971
814263
823682
556482
813471
728255
715417
422426
452429
453478
453987
534926
807842
729181
620473
481947
519598
492965
511453
518586
416128
546116
675492
564575
773977
746101
469833
507702
578733
578803
626015
617346
453547
542784
440662
468990
517417
524859
517596
626478
]
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 (653110 , 778481 , 725219 , 747981 , 756304 , 715163 , 825388 , 794433 , 794754 , 740166 , 824790 , 453920 , 488231 , 582745 , 709716 , 648176 , 715935 , 768648 , 735454 , 499000 , 462057 , 529115 , 578766 , 578731 , 767023 , 709266 , 455410 , 441971 , 814263 , 823682 , 556482 , 813471 , 728255 , 715417 , 422426 , 452429 , 453478 , 453987 , 534926 , 807842 , 729181 , 620473 , 481947 , 519598 , 492965 , 511453 , 518586 , 416128 , 546116 , 675492 , 564575 , 773977 , 746101 , 469833 , 507702 , 578733 , 578803 , 626015 , 617346 , 453547 , 542784 , 440662 , 468990 , 517417 , 524859 , 517596 , 626478 );
Copy
2.62 ms (1.75%)
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
416128
422426
440662
441971
452429
453478
453547
453920
453987
455410
462057
468990
469833
481947
488231
492965
499000
507702
511453
517417
517596
518586
519598
524859
529115
534926
542784
546116
556482
564575
578731
578733
578766
578803
582745
617346
620473
626015
626478
648176
653110
675492
709266
709716
715163
715417
715935
725219
728255
729181
735454
740166
746101
747981
756304
767023
768648
773977
778481
794433
794754
807842
813471
814263
823682
824790
825388
]
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 (416128 , 422426 , 440662 , 441971 , 452429 , 453478 , 453547 , 453920 , 453987 , 455410 , 462057 , 468990 , 469833 , 481947 , 488231 , 492965 , 499000 , 507702 , 511453 , 517417 , 517596 , 518586 , 519598 , 524859 , 529115 , 534926 , 542784 , 546116 , 556482 , 564575 , 578731 , 578733 , 578766 , 578803 , 582745 , 617346 , 620473 , 626015 , 626478 , 648176 , 653110 , 675492 , 709266 , 709716 , 715163 , 715417 , 715935 , 725219 , 728255 , 729181 , 735454 , 740166 , 746101 , 747981 , 756304 , 767023 , 768648 , 773977 , 778481 , 794433 , 794754 , 807842 , 813471 , 814263 , 823682 , 824790 , 825388 );
Copy