3
13.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
494705
513278
492341
514384
538372
512828
513272
522565
527632
541989
576112
597112
388325
530734
513696
534999
575458
575464
575165
576372
575748
575792
575493
576079
426173
443847
450814
511753
491659
520098
522569
524365
423568
482690
513160
576030
716496
693269
797949
496259
535028
590664
597119
625186
425910
424523
512295
491664
523996
713497
532753
519914
574916
553505
415109
492340
511370
519907
534988
513575
519909
444606
447812
538290
497921
614443
576080
559886
]
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 (494705 , 513278 , 492341 , 514384 , 538372 , 512828 , 513272 , 522565 , 527632 , 541989 , 576112 , 597112 , 388325 , 530734 , 513696 , 534999 , 575458 , 575464 , 575165 , 576372 , 575748 , 575792 , 575493 , 576079 , 426173 , 443847 , 450814 , 511753 , 491659 , 520098 , 522569 , 524365 , 423568 , 482690 , 513160 , 576030 , 716496 , 693269 , 797949 , 496259 , 535028 , 590664 , 597119 , 625186 , 425910 , 424523 , 512295 , 491664 , 523996 , 713497 , 532753 , 519914 , 574916 , 553505 , 415109 , 492340 , 511370 , 519907 , 534988 , 513575 , 519909 , 444606 , 447812 , 538290 , 497921 , 614443 , 576080 , 559886 );
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
388325
415109
423568
424523
425910
426173
443847
444606
447812
450814
482690
491659
491664
492340
492341
494705
496259
497921
511370
511753
512295
512828
513160
513272
513278
513575
513696
514384
519907
519909
519914
520098
522565
522569
523996
524365
527632
530734
532753
534988
534999
535028
538290
538372
541989
553505
559886
574916
575165
575458
575464
575493
575748
575792
576030
576079
576080
576112
576372
590664
597112
597119
614443
625186
693269
713497
716496
797949
]
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 (388325 , 415109 , 423568 , 424523 , 425910 , 426173 , 443847 , 444606 , 447812 , 450814 , 482690 , 491659 , 491664 , 492340 , 492341 , 494705 , 496259 , 497921 , 511370 , 511753 , 512295 , 512828 , 513160 , 513272 , 513278 , 513575 , 513696 , 514384 , 519907 , 519909 , 519914 , 520098 , 522565 , 522569 , 523996 , 524365 , 527632 , 530734 , 532753 , 534988 , 534999 , 535028 , 538290 , 538372 , 541989 , 553505 , 559886 , 574916 , 575165 , 575458 , 575464 , 575493 , 575748 , 575792 , 576030 , 576079 , 576080 , 576112 , 576372 , 590664 , 597112 , 597119 , 614443 , 625186 , 693269 , 713497 , 716496 , 797949 );
Copy
5
103.94 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
388325
415109
423568
424523
425910
426173
443847
444606
447812
450814
482690
491659
491664
492340
492341
494705
496259
497921
511370
511753
512295
512828
513160
513272
513278
513575
513696
514384
519907
519909
519914
520098
522565
522569
523996
524365
527632
530734
532753
534988
534999
535028
538290
538372
541989
553505
559886
574916
575165
575458
575464
575493
575748
575792
576030
576079
576080
576112
576372
590664
597112
597119
614443
625186
693269
713497
716496
797949
]
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 (388325 , 415109 , 423568 , 424523 , 425910 , 426173 , 443847 , 444606 , 447812 , 450814 , 482690 , 491659 , 491664 , 492340 , 492341 , 494705 , 496259 , 497921 , 511370 , 511753 , 512295 , 512828 , 513160 , 513272 , 513278 , 513575 , 513696 , 514384 , 519907 , 519909 , 519914 , 520098 , 522565 , 522569 , 523996 , 524365 , 527632 , 530734 , 532753 , 534988 , 534999 , 535028 , 538290 , 538372 , 541989 , 553505 , 559886 , 574916 , 575165 , 575458 , 575464 , 575493 , 575748 , 575792 , 576030 , 576079 , 576080 , 576112 , 576372 , 590664 , 597112 , 597119 , 614443 , 625186 , 693269 , 713497 , 716496 , 797949 );
Copy