3
9.98 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
696504
823113
561772
710545
597130
826851
819505
610015
630999
752497
780315
796927
388630
562278
564554
693579
808495
743037
784570
800196
572124
549309
562290
570034
661023
675082
777142
768603
776786
785462
570506
575869
591943
810191
799033
159370
428655
562293
570566
570573
618300
808143
747367
721704
528512
490793
549287
570014
545854
570039
562291
570505
604444
801953
731517
504197
504797
575552
568995
591067
471347
414946
491363
494202
383391
572495
572499
630771
597550
605840
]
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 (696504 , 823113 , 561772 , 710545 , 597130 , 826851 , 819505 , 610015 , 630999 , 752497 , 780315 , 796927 , 388630 , 562278 , 564554 , 693579 , 808495 , 743037 , 784570 , 800196 , 572124 , 549309 , 562290 , 570034 , 661023 , 675082 , 777142 , 768603 , 776786 , 785462 , 570506 , 575869 , 591943 , 810191 , 799033 , 159370 , 428655 , 562293 , 570566 , 570573 , 618300 , 808143 , 747367 , 721704 , 528512 , 490793 , 549287 , 570014 , 545854 , 570039 , 562291 , 570505 , 604444 , 801953 , 731517 , 504197 , 504797 , 575552 , 568995 , 591067 , 471347 , 414946 , 491363 , 494202 , 383391 , 572495 , 572499 , 630771 , 597550 , 605840 );
Copy
4
2.59 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
159370
383391
388630
414946
428655
471347
490793
491363
494202
504197
504797
528512
545854
549287
549309
561772
562278
562290
562291
562293
564554
568995
570014
570034
570039
570505
570506
570566
570573
572124
572495
572499
575552
575869
591067
591943
597130
597550
604444
605840
610015
618300
630771
630999
661023
675082
693579
696504
710545
721704
731517
743037
747367
752497
768603
776786
777142
780315
784570
785462
796927
799033
800196
801953
808143
808495
810191
819505
823113
826851
]
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 (159370 , 383391 , 388630 , 414946 , 428655 , 471347 , 490793 , 491363 , 494202 , 504197 , 504797 , 528512 , 545854 , 549287 , 549309 , 561772 , 562278 , 562290 , 562291 , 562293 , 564554 , 568995 , 570014 , 570034 , 570039 , 570505 , 570506 , 570566 , 570573 , 572124 , 572495 , 572499 , 575552 , 575869 , 591067 , 591943 , 597130 , 597550 , 604444 , 605840 , 610015 , 618300 , 630771 , 630999 , 661023 , 675082 , 693579 , 696504 , 710545 , 721704 , 731517 , 743037 , 747367 , 752497 , 768603 , 776786 , 777142 , 780315 , 784570 , 785462 , 796927 , 799033 , 800196 , 801953 , 808143 , 808495 , 810191 , 819505 , 823113 , 826851 );
Copy
5
82.27 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
159370
383391
388630
414946
428655
471347
490793
491363
494202
504197
504797
528512
545854
549287
549309
561772
562278
562290
562291
562293
564554
568995
570014
570034
570039
570505
570506
570566
570573
572124
572495
572499
575552
575869
591067
591943
597130
597550
604444
605840
610015
618300
630771
630999
661023
675082
693579
696504
710545
721704
731517
743037
747367
752497
768603
776786
777142
780315
784570
785462
796927
799033
800196
801953
808143
808495
810191
819505
823113
826851
]
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 (159370 , 383391 , 388630 , 414946 , 428655 , 471347 , 490793 , 491363 , 494202 , 504197 , 504797 , 528512 , 545854 , 549287 , 549309 , 561772 , 562278 , 562290 , 562291 , 562293 , 564554 , 568995 , 570014 , 570034 , 570039 , 570505 , 570506 , 570566 , 570573 , 572124 , 572495 , 572499 , 575552 , 575869 , 591067 , 591943 , 597130 , 597550 , 604444 , 605840 , 610015 , 618300 , 630771 , 630999 , 661023 , 675082 , 693579 , 696504 , 710545 , 721704 , 731517 , 743037 , 747367 , 752497 , 768603 , 776786 , 777142 , 780315 , 784570 , 785462 , 796927 , 799033 , 800196 , 801953 , 808143 , 808495 , 810191 , 819505 , 823113 , 826851 );
Copy