3
9.22 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
654634
662896
750838
806313
753037
753023
758624
762296
753050
714199
602652
802903
766709
692085
631208
397631
827013
625171
584035
630408
434709
749865
546471
530149
814711
709623
497742
732179
810734
454389
664274
636464
671338
810744
620748
606192
430293
813808
466886
530098
574649
468018
658477
490304
523575
410781
592386
445880
461136
454962
748128
491860
491865
453544
515572
594207
446900
454499
568982
428174
444940
445792
494276
494282
519469
453203
454968
698124
]
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 (654634 , 662896 , 750838 , 806313 , 753037 , 753023 , 758624 , 762296 , 753050 , 714199 , 602652 , 802903 , 766709 , 692085 , 631208 , 397631 , 827013 , 625171 , 584035 , 630408 , 434709 , 749865 , 546471 , 530149 , 814711 , 709623 , 497742 , 732179 , 810734 , 454389 , 664274 , 636464 , 671338 , 810744 , 620748 , 606192 , 430293 , 813808 , 466886 , 530098 , 574649 , 468018 , 658477 , 490304 , 523575 , 410781 , 592386 , 445880 , 461136 , 454962 , 748128 , 491860 , 491865 , 453544 , 515572 , 594207 , 446900 , 454499 , 568982 , 428174 , 444940 , 445792 , 494276 , 494282 , 519469 , 453203 , 454968 , 698124 );
Copy
4
2.62 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
397631
410781
428174
430293
434709
444940
445792
445880
446900
453203
453544
454389
454499
454962
454968
461136
466886
468018
490304
491860
491865
494276
494282
497742
515572
519469
523575
530098
530149
546471
568982
574649
584035
592386
594207
602652
606192
620748
625171
630408
631208
636464
654634
658477
662896
664274
671338
692085
698124
709623
714199
732179
748128
749865
750838
753023
753037
753050
758624
762296
766709
802903
806313
810734
810744
813808
814711
827013
]
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 (397631 , 410781 , 428174 , 430293 , 434709 , 444940 , 445792 , 445880 , 446900 , 453203 , 453544 , 454389 , 454499 , 454962 , 454968 , 461136 , 466886 , 468018 , 490304 , 491860 , 491865 , 494276 , 494282 , 497742 , 515572 , 519469 , 523575 , 530098 , 530149 , 546471 , 568982 , 574649 , 584035 , 592386 , 594207 , 602652 , 606192 , 620748 , 625171 , 630408 , 631208 , 636464 , 654634 , 658477 , 662896 , 664274 , 671338 , 692085 , 698124 , 709623 , 714199 , 732179 , 748128 , 749865 , 750838 , 753023 , 753037 , 753050 , 758624 , 762296 , 766709 , 802903 , 806313 , 810734 , 810744 , 813808 , 814711 , 827013 );
Copy
5
97.90 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
397631
410781
428174
430293
434709
444940
445792
445880
446900
453203
453544
454389
454499
454962
454968
461136
466886
468018
490304
491860
491865
494276
494282
497742
515572
519469
523575
530098
530149
546471
568982
574649
584035
592386
594207
602652
606192
620748
625171
630408
631208
636464
654634
658477
662896
664274
671338
692085
698124
709623
714199
732179
748128
749865
750838
753023
753037
753050
758624
762296
766709
802903
806313
810734
810744
813808
814711
827013
]
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 (397631 , 410781 , 428174 , 430293 , 434709 , 444940 , 445792 , 445880 , 446900 , 453203 , 453544 , 454389 , 454499 , 454962 , 454968 , 461136 , 466886 , 468018 , 490304 , 491860 , 491865 , 494276 , 494282 , 497742 , 515572 , 519469 , 523575 , 530098 , 530149 , 546471 , 568982 , 574649 , 584035 , 592386 , 594207 , 602652 , 606192 , 620748 , 625171 , 630408 , 631208 , 636464 , 654634 , 658477 , 662896 , 664274 , 671338 , 692085 , 698124 , 709623 , 714199 , 732179 , 748128 , 749865 , 750838 , 753023 , 753037 , 753050 , 758624 , 762296 , 766709 , 802903 , 806313 , 810734 , 810744 , 813808 , 814711 , 827013 );
Copy