3
11.53 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
822745
822179
589533
619694
781086
803421
735126
706038
410664
529827
541915
706256
781926
688265
827045
815510
554858
536423
531836
799789
530426
534944
544751
445984
653028
453197
724580
68383
639083
442035
530428
556939
538990
510822
529621
548460
548458
529713
431485
494530
616296
583206
493740
430800
530423
545237
806346
410687
559298
735134
521546
476322
530429
402625
585110
440045
416508
446781
586563
475646
520418
446785
527409
416819
529988
605370
559155
]
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 (822745 , 822179 , 589533 , 619694 , 781086 , 803421 , 735126 , 706038 , 410664 , 529827 , 541915 , 706256 , 781926 , 688265 , 827045 , 815510 , 554858 , 536423 , 531836 , 799789 , 530426 , 534944 , 544751 , 445984 , 653028 , 453197 , 724580 , 68383 , 639083 , 442035 , 530428 , 556939 , 538990 , 510822 , 529621 , 548460 , 548458 , 529713 , 431485 , 494530 , 616296 , 583206 , 493740 , 430800 , 530423 , 545237 , 806346 , 410687 , 559298 , 735134 , 521546 , 476322 , 530429 , 402625 , 585110 , 440045 , 416508 , 446781 , 586563 , 475646 , 520418 , 446785 , 527409 , 416819 , 529988 , 605370 , 559155 );
Copy
4
2.76 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
68383
402625
410664
410687
416508
416819
430800
431485
440045
442035
445984
446781
446785
453197
475646
476322
493740
494530
510822
520418
521546
527409
529621
529713
529827
529988
530423
530426
530428
530429
531836
534944
536423
538990
541915
544751
545237
548458
548460
554858
556939
559155
559298
583206
585110
586563
589533
605370
616296
619694
639083
653028
688265
706038
706256
724580
735126
735134
781086
781926
799789
803421
806346
815510
822179
822745
827045
]
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 (68383 , 402625 , 410664 , 410687 , 416508 , 416819 , 430800 , 431485 , 440045 , 442035 , 445984 , 446781 , 446785 , 453197 , 475646 , 476322 , 493740 , 494530 , 510822 , 520418 , 521546 , 527409 , 529621 , 529713 , 529827 , 529988 , 530423 , 530426 , 530428 , 530429 , 531836 , 534944 , 536423 , 538990 , 541915 , 544751 , 545237 , 548458 , 548460 , 554858 , 556939 , 559155 , 559298 , 583206 , 585110 , 586563 , 589533 , 605370 , 616296 , 619694 , 639083 , 653028 , 688265 , 706038 , 706256 , 724580 , 735126 , 735134 , 781086 , 781926 , 799789 , 803421 , 806346 , 815510 , 822179 , 822745 , 827045 );
Copy
5
83.56 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
68383
402625
410664
410687
416508
416819
430800
431485
440045
442035
445984
446781
446785
453197
475646
476322
493740
494530
510822
520418
521546
527409
529621
529713
529827
529988
530423
530426
530428
530429
531836
534944
536423
538990
541915
544751
545237
548458
548460
554858
556939
559155
559298
583206
585110
586563
589533
605370
616296
619694
639083
653028
688265
706038
706256
724580
735126
735134
781086
781926
799789
803421
806346
815510
822179
822745
827045
]
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 (68383 , 402625 , 410664 , 410687 , 416508 , 416819 , 430800 , 431485 , 440045 , 442035 , 445984 , 446781 , 446785 , 453197 , 475646 , 476322 , 493740 , 494530 , 510822 , 520418 , 521546 , 527409 , 529621 , 529713 , 529827 , 529988 , 530423 , 530426 , 530428 , 530429 , 531836 , 534944 , 536423 , 538990 , 541915 , 544751 , 545237 , 548458 , 548460 , 554858 , 556939 , 559155 , 559298 , 583206 , 585110 , 586563 , 589533 , 605370 , 616296 , 619694 , 639083 , 653028 , 688265 , 706038 , 706256 , 724580 , 735126 , 735134 , 781086 , 781926 , 799789 , 803421 , 806346 , 815510 , 822179 , 822745 , 827045 );
Copy