106.01 ms (36.62%)
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
398576
398705
400609
402550
404000
415356
421122
421211
427846
437084
437086
437088
437089
437090
437092
437097
437102
437104
437105
437113
437114
437552
437668
444579
446456
451313
452984
453519
453523
453525
453526
453527
480273
520972
520982
524341
524342
524343
544525
551834
556041
567495
574974
603380
682326
682373
682374
682383
709713
729026
729028
729037
739591
739695
745167
749367
749382
749390
749399
749543
765902
771206
775281
776151
809886
810845
]
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 (398576 , 398705 , 400609 , 402550 , 404000 , 415356 , 421122 , 421211 , 427846 , 437084 , 437086 , 437088 , 437089 , 437090 , 437092 , 437097 , 437102 , 437104 , 437105 , 437113 , 437114 , 437552 , 437668 , 444579 , 446456 , 451313 , 452984 , 453519 , 453523 , 453525 , 453526 , 453527 , 480273 , 520972 , 520982 , 524341 , 524342 , 524343 , 544525 , 551834 , 556041 , 567495 , 574974 , 603380 , 682326 , 682373 , 682374 , 682383 , 709713 , 729026 , 729028 , 729037 , 739591 , 739695 , 745167 , 749367 , 749382 , 749390 , 749399 , 749543 , 765902 , 771206 , 775281 , 776151 , 809886 , 810845 );
Copy
11.04 ms (3.81%)
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
446456
437105
749367
775281
809886
729037
739591
765902
749399
453527
810845
709713
771206
427846
749390
749543
682373
739695
437090
776151
729026
437092
453523
682374
544525
421211
749382
574974
556041
603380
567495
524341
398705
745167
729028
415356
402550
453526
404000
480273
437104
682326
398576
437102
453519
551834
437552
437097
421122
400609
452984
437086
682383
437113
451313
444579
437114
453525
524342
437668
520982
437089
520972
437088
437084
524343
]
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 (446456 , 437105 , 749367 , 775281 , 809886 , 729037 , 739591 , 765902 , 749399 , 453527 , 810845 , 709713 , 771206 , 427846 , 749390 , 749543 , 682373 , 739695 , 437090 , 776151 , 729026 , 437092 , 453523 , 682374 , 544525 , 421211 , 749382 , 574974 , 556041 , 603380 , 567495 , 524341 , 398705 , 745167 , 729028 , 415356 , 402550 , 453526 , 404000 , 480273 , 437104 , 682326 , 398576 , 437102 , 453519 , 551834 , 437552 , 437097 , 421122 , 400609 , 452984 , 437086 , 682383 , 437113 , 451313 , 444579 , 437114 , 453525 , 524342 , 437668 , 520982 , 437089 , 520972 , 437088 , 437084 , 524343 );
Copy
2.74 ms (0.95%)
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
398576
398705
400609
402550
404000
415356
421122
421211
427846
437084
437086
437088
437089
437090
437092
437097
437102
437104
437105
437113
437114
437552
437668
444579
446456
451313
452984
453519
453523
453525
453526
453527
480273
520972
520982
524341
524342
524343
544525
551834
556041
567495
574974
603380
682326
682373
682374
682383
709713
729026
729028
729037
739591
739695
745167
749367
749382
749390
749399
749543
765902
771206
775281
776151
809886
810845
]
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 (398576 , 398705 , 400609 , 402550 , 404000 , 415356 , 421122 , 421211 , 427846 , 437084 , 437086 , 437088 , 437089 , 437090 , 437092 , 437097 , 437102 , 437104 , 437105 , 437113 , 437114 , 437552 , 437668 , 444579 , 446456 , 451313 , 452984 , 453519 , 453523 , 453525 , 453526 , 453527 , 480273 , 520972 , 520982 , 524341 , 524342 , 524343 , 544525 , 551834 , 556041 , 567495 , 574974 , 603380 , 682326 , 682373 , 682374 , 682383 , 709713 , 729026 , 729028 , 729037 , 739591 , 739695 , 745167 , 749367 , 749382 , 749390 , 749399 , 749543 , 765902 , 771206 , 775281 , 776151 , 809886 , 810845 );
Copy