4
15.34 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
417095
704560
706290
698289
563917
592812
448635
431494
400195
425603
409144
448970
522689
486540
519931
489082
491978
491963
408774
413890
428512
448640
512790
557185
687500
559678
615015
477579
523478
528403
518960
441626
516782
721646
566257
728452
610660
400196
409682
433669
431242
505976
483392
522207
401933
400249
442946
456600
500578
519038
412288
482555
447706
495198
799936
471639
482350
494345
486198
502995
565050
421907
486594
429409
458719
460673
509666
602734
517008
484519
534645
517000
499882
]
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 (417095 , 704560 , 706290 , 698289 , 563917 , 592812 , 448635 , 431494 , 400195 , 425603 , 409144 , 448970 , 522689 , 486540 , 519931 , 489082 , 491978 , 491963 , 408774 , 413890 , 428512 , 448640 , 512790 , 557185 , 687500 , 559678 , 615015 , 477579 , 523478 , 528403 , 518960 , 441626 , 516782 , 721646 , 566257 , 728452 , 610660 , 400196 , 409682 , 433669 , 431242 , 505976 , 483392 , 522207 , 401933 , 400249 , 442946 , 456600 , 500578 , 519038 , 412288 , 482555 , 447706 , 495198 , 799936 , 471639 , 482350 , 494345 , 486198 , 502995 , 565050 , 421907 , 486594 , 429409 , 458719 , 460673 , 509666 , 602734 , 517008 , 484519 , 534645 , 517000 , 499882 );
Copy
5
3.32 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
400195
400196
400249
401933
408774
409144
409682
412288
413890
417095
421907
425603
428512
429409
431242
431494
433669
441626
442946
447706
448635
448640
448970
456600
458719
460673
471639
477579
482350
482555
483392
484519
486198
486540
486594
489082
491963
491978
494345
495198
499882
500578
502995
505976
509666
512790
516782
517000
517008
518960
519038
519931
522207
522689
523478
528403
534645
557185
559678
563917
565050
566257
592812
602734
610660
615015
687500
698289
704560
706290
721646
728452
799936
]
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 (400195 , 400196 , 400249 , 401933 , 408774 , 409144 , 409682 , 412288 , 413890 , 417095 , 421907 , 425603 , 428512 , 429409 , 431242 , 431494 , 433669 , 441626 , 442946 , 447706 , 448635 , 448640 , 448970 , 456600 , 458719 , 460673 , 471639 , 477579 , 482350 , 482555 , 483392 , 484519 , 486198 , 486540 , 486594 , 489082 , 491963 , 491978 , 494345 , 495198 , 499882 , 500578 , 502995 , 505976 , 509666 , 512790 , 516782 , 517000 , 517008 , 518960 , 519038 , 519931 , 522207 , 522689 , 523478 , 528403 , 534645 , 557185 , 559678 , 563917 , 565050 , 566257 , 592812 , 602734 , 610660 , 615015 , 687500 , 698289 , 704560 , 706290 , 721646 , 728452 , 799936 );
Copy
6
95.03 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
400195
400196
400249
401933
408774
409144
409682
412288
413890
417095
421907
425603
428512
429409
431242
431494
433669
441626
442946
447706
448635
448640
448970
456600
458719
460673
471639
477579
482350
482555
483392
484519
486198
486540
486594
489082
491963
491978
494345
495198
499882
500578
502995
505976
509666
512790
516782
517000
517008
518960
519038
519931
522207
522689
523478
528403
534645
557185
559678
563917
565050
566257
592812
602734
610660
615015
687500
698289
704560
706290
721646
728452
799936
]
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 (400195 , 400196 , 400249 , 401933 , 408774 , 409144 , 409682 , 412288 , 413890 , 417095 , 421907 , 425603 , 428512 , 429409 , 431242 , 431494 , 433669 , 441626 , 442946 , 447706 , 448635 , 448640 , 448970 , 456600 , 458719 , 460673 , 471639 , 477579 , 482350 , 482555 , 483392 , 484519 , 486198 , 486540 , 486594 , 489082 , 491963 , 491978 , 494345 , 495198 , 499882 , 500578 , 502995 , 505976 , 509666 , 512790 , 516782 , 517000 , 517008 , 518960 , 519038 , 519931 , 522207 , 522689 , 523478 , 528403 , 534645 , 557185 , 559678 , 563917 , 565050 , 566257 , 592812 , 602734 , 610660 , 615015 , 687500 , 698289 , 704560 , 706290 , 721646 , 728452 , 799936 );
Copy