75.66 ms (75.66%)
1
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
73246
80930
122554
176979
384215
430437
456795
457475
460965
480460
489485
490704
498163
515268
519622
519954
521306
522599
542191
547546
548582
548892
553096
560947
565925
581198
584101
593338
593360
593364
593396
593441
600258
601118
606842
607129
607733
617041
622205
622693
624876
625441
625928
637444
648817
666955
677850
705438
732156
734842
735818
739172
741219
753798
754148
755950
757559
759881
767021
773913
808179
815668
816020
820957
]
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 (73246 , 80930 , 122554 , 176979 , 384215 , 430437 , 456795 , 457475 , 460965 , 480460 , 489485 , 490704 , 498163 , 515268 , 519622 , 519954 , 521306 , 522599 , 542191 , 547546 , 548582 , 548892 , 553096 , 560947 , 565925 , 581198 , 584101 , 593338 , 593360 , 593364 , 593396 , 593441 , 600258 , 601118 , 606842 , 607129 , 607733 , 617041 , 622205 , 622693 , 624876 , 625441 , 625928 , 637444 , 648817 , 666955 , 677850 , 705438 , 732156 , 734842 , 735818 , 739172 , 741219 , 753798 , 754148 , 755950 , 757559 , 759881 , 767021 , 773913 , 808179 , 815668 , 816020 , 820957 );
Copy
8.80 ms (8.80%)
1
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
617041
705438
637444
624876
625441
593360
384215
593338
593364
460965
548892
73246
677850
757559
601118
560947
593396
754148
767021
808179
490704
816020
755950
607733
622693
176979
548582
489485
815668
820957
753798
735818
622205
759881
739172
773913
122554
519954
593441
666955
732156
648817
606842
80930
456795
498163
522599
547546
741219
515268
457475
584101
734842
607129
521306
519622
600258
565925
553096
480460
430437
625928
581198
542191
]
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 (617041 , 705438 , 637444 , 624876 , 625441 , 593360 , 384215 , 593338 , 593364 , 460965 , 548892 , 73246 , 677850 , 757559 , 601118 , 560947 , 593396 , 754148 , 767021 , 808179 , 490704 , 816020 , 755950 , 607733 , 622693 , 176979 , 548582 , 489485 , 815668 , 820957 , 753798 , 735818 , 622205 , 759881 , 739172 , 773913 , 122554 , 519954 , 593441 , 666955 , 732156 , 648817 , 606842 , 80930 , 456795 , 498163 , 522599 , 547546 , 741219 , 515268 , 457475 , 584101 , 734842 , 607129 , 521306 , 519622 , 600258 , 565925 , 553096 , 480460 , 430437 , 625928 , 581198 , 542191 );
Copy
2.57 ms (2.57%)
1
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
73246
80930
122554
176979
384215
430437
456795
457475
460965
480460
489485
490704
498163
515268
519622
519954
521306
522599
542191
547546
548582
548892
553096
560947
565925
581198
584101
593338
593360
593364
593396
593441
600258
601118
606842
607129
607733
617041
622205
622693
624876
625441
625928
637444
648817
666955
677850
705438
732156
734842
735818
739172
741219
753798
754148
755950
757559
759881
767021
773913
808179
815668
816020
820957
]
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 (73246 , 80930 , 122554 , 176979 , 384215 , 430437 , 456795 , 457475 , 460965 , 480460 , 489485 , 490704 , 498163 , 515268 , 519622 , 519954 , 521306 , 522599 , 542191 , 547546 , 548582 , 548892 , 553096 , 560947 , 565925 , 581198 , 584101 , 593338 , 593360 , 593364 , 593396 , 593441 , 600258 , 601118 , 606842 , 607129 , 607733 , 617041 , 622205 , 622693 , 624876 , 625441 , 625928 , 637444 , 648817 , 666955 , 677850 , 705438 , 732156 , 734842 , 735818 , 739172 , 741219 , 753798 , 754148 , 755950 , 757559 , 759881 , 767021 , 773913 , 808179 , 815668 , 816020 , 820957 );
Copy