68.34 ms (49.33%)
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
7196
214988
434724
444252
448303
448359
448376
448377
451714
458755
466237
473169
496090
501651
506513
518945
523893
524718
524725
530766
530804
531254
532852
534986
534995
535026
535027
536278
538190
549870
549872
570537
572468
572816
573078
573083
573651
573840
629021
635902
636791
636801
636813
636869
641737
644925
645236
646175
648863
650326
653537
653538
653544
673554
675023
675034
675041
675052
675781
675806
675815
722823
784146
]
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 (7196 , 214988 , 434724 , 444252 , 448303 , 448359 , 448376 , 448377 , 451714 , 458755 , 466237 , 473169 , 496090 , 501651 , 506513 , 518945 , 523893 , 524718 , 524725 , 530766 , 530804 , 531254 , 532852 , 534986 , 534995 , 535026 , 535027 , 536278 , 538190 , 549870 , 549872 , 570537 , 572468 , 572816 , 573078 , 573083 , 573651 , 573840 , 629021 , 635902 , 636791 , 636801 , 636813 , 636869 , 641737 , 644925 , 645236 , 646175 , 648863 , 650326 , 653537 , 653538 , 653544 , 673554 , 675023 , 675034 , 675041 , 675052 , 675781 , 675806 , 675815 , 722823 , 784146 );
Copy
10.35 ms (7.47%)
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
534986
530766
648863
530804
535027
646175
531254
534995
532852
644925
645236
675041
535026
675052
675781
448359
523893
675023
636791
641737
573083
572468
573078
458755
635902
573651
572816
448303
451714
524718
673554
675806
675815
573840
636813
536278
653538
722823
466237
524725
506513
434724
570537
650326
784146
444252
448376
7196
549872
496090
501651
473169
549870
448377
538190
675034
214988
518945
653544
636869
653537
636801
629021
]
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 (534986 , 530766 , 648863 , 530804 , 535027 , 646175 , 531254 , 534995 , 532852 , 644925 , 645236 , 675041 , 535026 , 675052 , 675781 , 448359 , 523893 , 675023 , 636791 , 641737 , 573083 , 572468 , 573078 , 458755 , 635902 , 573651 , 572816 , 448303 , 451714 , 524718 , 673554 , 675806 , 675815 , 573840 , 636813 , 536278 , 653538 , 722823 , 466237 , 524725 , 506513 , 434724 , 570537 , 650326 , 784146 , 444252 , 448376 , 7196 , 549872 , 496090 , 501651 , 473169 , 549870 , 448377 , 538190 , 675034 , 214988 , 518945 , 653544 , 636869 , 653537 , 636801 , 629021 );
Copy
2.46 ms (1.78%)
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
7196
214988
434724
444252
448303
448359
448376
448377
451714
458755
466237
473169
496090
501651
506513
518945
523893
524718
524725
530766
530804
531254
532852
534986
534995
535026
535027
536278
538190
549870
549872
570537
572468
572816
573078
573083
573651
573840
629021
635902
636791
636801
636813
636869
641737
644925
645236
646175
648863
650326
653537
653538
653544
673554
675023
675034
675041
675052
675781
675806
675815
722823
784146
]
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 (7196 , 214988 , 434724 , 444252 , 448303 , 448359 , 448376 , 448377 , 451714 , 458755 , 466237 , 473169 , 496090 , 501651 , 506513 , 518945 , 523893 , 524718 , 524725 , 530766 , 530804 , 531254 , 532852 , 534986 , 534995 , 535026 , 535027 , 536278 , 538190 , 549870 , 549872 , 570537 , 572468 , 572816 , 573078 , 573083 , 573651 , 573840 , 629021 , 635902 , 636791 , 636801 , 636813 , 636869 , 641737 , 644925 , 645236 , 646175 , 648863 , 650326 , 653537 , 653538 , 653544 , 673554 , 675023 , 675034 , 675041 , 675052 , 675781 , 675806 , 675815 , 722823 , 784146 );
Copy