3
12.87 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
701292
529991
760486
534046
652230
806431
806588
469068
652225
598005
806398
790461
595214
782896
631325
808674
538759
808629
631641
419646
520865
791020
602168
656202
434469
533914
382175
504077
774676
813926
450852
469067
683270
600190
504075
522158
646031
535474
568195
812765
447762
538764
428308
452915
477217
532830
528890
605247
602337
812755
447775
428305
431747
448582
454631
445793
475293
450373
397509
457111
452810
430516
416164
462682
538689
530171
568208
595488
447761
429844
452775
475407
486775
479204
]
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 (701292 , 529991 , 760486 , 534046 , 652230 , 806431 , 806588 , 469068 , 652225 , 598005 , 806398 , 790461 , 595214 , 782896 , 631325 , 808674 , 538759 , 808629 , 631641 , 419646 , 520865 , 791020 , 602168 , 656202 , 434469 , 533914 , 382175 , 504077 , 774676 , 813926 , 450852 , 469067 , 683270 , 600190 , 504075 , 522158 , 646031 , 535474 , 568195 , 812765 , 447762 , 538764 , 428308 , 452915 , 477217 , 532830 , 528890 , 605247 , 602337 , 812755 , 447775 , 428305 , 431747 , 448582 , 454631 , 445793 , 475293 , 450373 , 397509 , 457111 , 452810 , 430516 , 416164 , 462682 , 538689 , 530171 , 568208 , 595488 , 447761 , 429844 , 452775 , 475407 , 486775 , 479204 );
Copy
4
2.75 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
382175
397509
416164
419646
428305
428308
429844
430516
431747
434469
445793
447761
447762
447775
448582
450373
450852
452775
452810
452915
454631
457111
462682
469067
469068
475293
475407
477217
479204
486775
504075
504077
520865
522158
528890
529991
530171
532830
533914
534046
535474
538689
538759
538764
568195
568208
595214
595488
598005
600190
602168
602337
605247
631325
631641
646031
652225
652230
656202
683270
701292
760486
774676
782896
790461
791020
806398
806431
806588
808629
808674
812755
812765
813926
]
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 (382175 , 397509 , 416164 , 419646 , 428305 , 428308 , 429844 , 430516 , 431747 , 434469 , 445793 , 447761 , 447762 , 447775 , 448582 , 450373 , 450852 , 452775 , 452810 , 452915 , 454631 , 457111 , 462682 , 469067 , 469068 , 475293 , 475407 , 477217 , 479204 , 486775 , 504075 , 504077 , 520865 , 522158 , 528890 , 529991 , 530171 , 532830 , 533914 , 534046 , 535474 , 538689 , 538759 , 538764 , 568195 , 568208 , 595214 , 595488 , 598005 , 600190 , 602168 , 602337 , 605247 , 631325 , 631641 , 646031 , 652225 , 652230 , 656202 , 683270 , 701292 , 760486 , 774676 , 782896 , 790461 , 791020 , 806398 , 806431 , 806588 , 808629 , 808674 , 812755 , 812765 , 813926 );
Copy
5
98.75 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
382175
397509
416164
419646
428305
428308
429844
430516
431747
434469
445793
447761
447762
447775
448582
450373
450852
452775
452810
452915
454631
457111
462682
469067
469068
475293
475407
477217
479204
486775
504075
504077
520865
522158
528890
529991
530171
532830
533914
534046
535474
538689
538759
538764
568195
568208
595214
595488
598005
600190
602168
602337
605247
631325
631641
646031
652225
652230
656202
683270
701292
760486
774676
782896
790461
791020
806398
806431
806588
808629
808674
812755
812765
813926
]
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 (382175 , 397509 , 416164 , 419646 , 428305 , 428308 , 429844 , 430516 , 431747 , 434469 , 445793 , 447761 , 447762 , 447775 , 448582 , 450373 , 450852 , 452775 , 452810 , 452915 , 454631 , 457111 , 462682 , 469067 , 469068 , 475293 , 475407 , 477217 , 479204 , 486775 , 504075 , 504077 , 520865 , 522158 , 528890 , 529991 , 530171 , 532830 , 533914 , 534046 , 535474 , 538689 , 538759 , 538764 , 568195 , 568208 , 595214 , 595488 , 598005 , 600190 , 602168 , 602337 , 605247 , 631325 , 631641 , 646031 , 652225 , 652230 , 656202 , 683270 , 701292 , 760486 , 774676 , 782896 , 790461 , 791020 , 806398 , 806431 , 806588 , 808629 , 808674 , 812755 , 812765 , 813926 );
Copy