3
7.42 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
809827
808266
583082
712583
620614
455888
573261
759785
761047
526199
502626
473476
533948
600471
602862
602371
726986
786509
742233
725748
757298
632435
726171
773417
794917
763059
706931
789874
759290
758312
695902
759435
720651
786524
809485
450385
791803
805372
828595
781327
757795
665404
801225
813915
604364
703713
584955
602781
623968
793472
500884
542161
482925
447951
560845
669574
457130
670239
447955
450579
584712
604289
582631
634230
]
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 (809827 , 808266 , 583082 , 712583 , 620614 , 455888 , 573261 , 759785 , 761047 , 526199 , 502626 , 473476 , 533948 , 600471 , 602862 , 602371 , 726986 , 786509 , 742233 , 725748 , 757298 , 632435 , 726171 , 773417 , 794917 , 763059 , 706931 , 789874 , 759290 , 758312 , 695902 , 759435 , 720651 , 786524 , 809485 , 450385 , 791803 , 805372 , 828595 , 781327 , 757795 , 665404 , 801225 , 813915 , 604364 , 703713 , 584955 , 602781 , 623968 , 793472 , 500884 , 542161 , 482925 , 447951 , 560845 , 669574 , 457130 , 670239 , 447955 , 450579 , 584712 , 604289 , 582631 , 634230 );
Copy
4
2.33 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
447951
447955
450385
450579
455888
457130
473476
482925
500884
502626
526199
533948
542161
560845
573261
582631
583082
584712
584955
600471
602371
602862
604289
604364
620614
623968
632435
634230
665404
669574
670239
695902
703713
706931
712583
720651
725748
726171
726986
742233
757298
757795
758312
759290
759435
759785
761047
763059
773417
781327
786509
786524
789874
791803
793472
794917
801225
805372
808266
809485
809827
813915
828595
]
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 (447951 , 447955 , 450385 , 450579 , 455888 , 457130 , 473476 , 482925 , 500884 , 502626 , 526199 , 533948 , 542161 , 560845 , 573261 , 582631 , 583082 , 584712 , 584955 , 600471 , 602371 , 602862 , 604289 , 604364 , 620614 , 623968 , 632435 , 634230 , 665404 , 669574 , 670239 , 695902 , 703713 , 706931 , 712583 , 720651 , 725748 , 726171 , 726986 , 742233 , 757298 , 757795 , 758312 , 759290 , 759435 , 759785 , 761047 , 763059 , 773417 , 781327 , 786509 , 786524 , 789874 , 791803 , 793472 , 794917 , 801225 , 805372 , 808266 , 809485 , 809827 , 813915 , 828595 );
Copy
5
78.04 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
447951
447955
450385
450579
455888
457130
473476
482925
500884
502626
526199
533948
542161
560845
573261
582631
583082
584712
584955
600471
602371
602862
604289
604364
620614
623968
632435
634230
665404
669574
670239
695902
703713
706931
712583
720651
725748
726171
726986
742233
757298
757795
758312
759290
759435
759785
761047
763059
773417
781327
786509
786524
789874
791803
793472
794917
801225
805372
808266
809485
809827
813915
828595
]
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 (447951 , 447955 , 450385 , 450579 , 455888 , 457130 , 473476 , 482925 , 500884 , 502626 , 526199 , 533948 , 542161 , 560845 , 573261 , 582631 , 583082 , 584712 , 584955 , 600471 , 602371 , 602862 , 604289 , 604364 , 620614 , 623968 , 632435 , 634230 , 665404 , 669574 , 670239 , 695902 , 703713 , 706931 , 712583 , 720651 , 725748 , 726171 , 726986 , 742233 , 757298 , 757795 , 758312 , 759290 , 759435 , 759785 , 761047 , 763059 , 773417 , 781327 , 786509 , 786524 , 789874 , 791803 , 793472 , 794917 , 801225 , 805372 , 808266 , 809485 , 809827 , 813915 , 828595 );
Copy