4
17.05 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
588031
602008
602404
631616
624480
587542
614467
606769
630919
413096
456981
443651
503802
483244
504723
505107
520422
522423
443636
452626
471886
526515
502518
517395
540071
569223
650992
601147
610661
447655
465824
523901
501283
522328
515107
558788
583981
587926
591094
455147
535013
529300
516885
583964
575445
600056
634277
625519
464326
533426
502021
520770
573920
622932
598859
615703
523027
573754
572029
588039
628068
504768
567416
622668
505660
]
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 (588031 , 602008 , 602404 , 631616 , 624480 , 587542 , 614467 , 606769 , 630919 , 413096 , 456981 , 443651 , 503802 , 483244 , 504723 , 505107 , 520422 , 522423 , 443636 , 452626 , 471886 , 526515 , 502518 , 517395 , 540071 , 569223 , 650992 , 601147 , 610661 , 447655 , 465824 , 523901 , 501283 , 522328 , 515107 , 558788 , 583981 , 587926 , 591094 , 455147 , 535013 , 529300 , 516885 , 583964 , 575445 , 600056 , 634277 , 625519 , 464326 , 533426 , 502021 , 520770 , 573920 , 622932 , 598859 , 615703 , 523027 , 573754 , 572029 , 588039 , 628068 , 504768 , 567416 , 622668 , 505660 );
Copy
5
2.82 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
413096
443636
443651
447655
452626
455147
456981
464326
465824
471886
483244
501283
502021
502518
503802
504723
504768
505107
505660
515107
516885
517395
520422
520770
522328
522423
523027
523901
526515
529300
533426
535013
540071
558788
567416
569223
572029
573754
573920
575445
583964
583981
587542
587926
588031
588039
591094
598859
600056
601147
602008
602404
606769
610661
614467
615703
622668
622932
624480
625519
628068
630919
631616
634277
650992
]
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 (413096 , 443636 , 443651 , 447655 , 452626 , 455147 , 456981 , 464326 , 465824 , 471886 , 483244 , 501283 , 502021 , 502518 , 503802 , 504723 , 504768 , 505107 , 505660 , 515107 , 516885 , 517395 , 520422 , 520770 , 522328 , 522423 , 523027 , 523901 , 526515 , 529300 , 533426 , 535013 , 540071 , 558788 , 567416 , 569223 , 572029 , 573754 , 573920 , 575445 , 583964 , 583981 , 587542 , 587926 , 588031 , 588039 , 591094 , 598859 , 600056 , 601147 , 602008 , 602404 , 606769 , 610661 , 614467 , 615703 , 622668 , 622932 , 624480 , 625519 , 628068 , 630919 , 631616 , 634277 , 650992 );
Copy
6
83.93 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
413096
443636
443651
447655
452626
455147
456981
464326
465824
471886
483244
501283
502021
502518
503802
504723
504768
505107
505660
515107
516885
517395
520422
520770
522328
522423
523027
523901
526515
529300
533426
535013
540071
558788
567416
569223
572029
573754
573920
575445
583964
583981
587542
587926
588031
588039
591094
598859
600056
601147
602008
602404
606769
610661
614467
615703
622668
622932
624480
625519
628068
630919
631616
634277
650992
]
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 (413096 , 443636 , 443651 , 447655 , 452626 , 455147 , 456981 , 464326 , 465824 , 471886 , 483244 , 501283 , 502021 , 502518 , 503802 , 504723 , 504768 , 505107 , 505660 , 515107 , 516885 , 517395 , 520422 , 520770 , 522328 , 522423 , 523027 , 523901 , 526515 , 529300 , 533426 , 535013 , 540071 , 558788 , 567416 , 569223 , 572029 , 573754 , 573920 , 575445 , 583964 , 583981 , 587542 , 587926 , 588031 , 588039 , 591094 , 598859 , 600056 , 601147 , 602008 , 602404 , 606769 , 610661 , 614467 , 615703 , 622668 , 622932 , 624480 , 625519 , 628068 , 630919 , 631616 , 634277 , 650992 );
Copy