91.37 ms (25.85%)
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
437176
438742
439649
444594
445204
447183
450470
450935
452277
456745
458789
460026
478400
479222
479889
493359
500489
500498
507787
514668
514693
517596
524234
536154
542082
544977
548319
557345
558338
563634
572250
575503
581681
588802
591855
591932
599642
602414
607029
630376
664521
695784
696992
699408
732735
769399
773977
778584
779262
779627
780073
789779
791195
793296
793314
802067
811079
819111
824130
824904
826363
826369
]
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 (437176 , 438742 , 439649 , 444594 , 445204 , 447183 , 450470 , 450935 , 452277 , 456745 , 458789 , 460026 , 478400 , 479222 , 479889 , 493359 , 500489 , 500498 , 507787 , 514668 , 514693 , 517596 , 524234 , 536154 , 542082 , 544977 , 548319 , 557345 , 558338 , 563634 , 572250 , 575503 , 581681 , 588802 , 591855 , 591932 , 599642 , 602414 , 607029 , 630376 , 664521 , 695784 , 696992 , 699408 , 732735 , 769399 , 773977 , 778584 , 779262 , 779627 , 780073 , 789779 , 791195 , 793296 , 793314 , 802067 , 811079 , 819111 , 824130 , 824904 , 826363 , 826369 );
Copy
10.96 ms (3.10%)
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
789779
802067
696992
507787
572250
793314
500498
778584
602414
437176
456745
479889
536154
544977
773977
542082
514668
769399
607029
444594
460026
793296
575503
438742
591932
452277
445204
517596
514693
811079
819111
450470
599642
695784
493359
458789
588802
591855
826369
664521
699408
450935
524234
826363
791195
630376
732735
824904
779627
780073
563634
478400
779262
581681
824130
479222
557345
500489
548319
439649
558338
447183
]
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 (789779 , 802067 , 696992 , 507787 , 572250 , 793314 , 500498 , 778584 , 602414 , 437176 , 456745 , 479889 , 536154 , 544977 , 773977 , 542082 , 514668 , 769399 , 607029 , 444594 , 460026 , 793296 , 575503 , 438742 , 591932 , 452277 , 445204 , 517596 , 514693 , 811079 , 819111 , 450470 , 599642 , 695784 , 493359 , 458789 , 588802 , 591855 , 826369 , 664521 , 699408 , 450935 , 524234 , 826363 , 791195 , 630376 , 732735 , 824904 , 779627 , 780073 , 563634 , 478400 , 779262 , 581681 , 824130 , 479222 , 557345 , 500489 , 548319 , 439649 , 558338 , 447183 );
Copy
2.83 ms (0.80%)
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
437176
438742
439649
444594
445204
447183
450470
450935
452277
456745
458789
460026
478400
479222
479889
493359
500489
500498
507787
514668
514693
517596
524234
536154
542082
544977
548319
557345
558338
563634
572250
575503
581681
588802
591855
591932
599642
602414
607029
630376
664521
695784
696992
699408
732735
769399
773977
778584
779262
779627
780073
789779
791195
793296
793314
802067
811079
819111
824130
824904
826363
826369
]
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 (437176 , 438742 , 439649 , 444594 , 445204 , 447183 , 450470 , 450935 , 452277 , 456745 , 458789 , 460026 , 478400 , 479222 , 479889 , 493359 , 500489 , 500498 , 507787 , 514668 , 514693 , 517596 , 524234 , 536154 , 542082 , 544977 , 548319 , 557345 , 558338 , 563634 , 572250 , 575503 , 581681 , 588802 , 591855 , 591932 , 599642 , 602414 , 607029 , 630376 , 664521 , 695784 , 696992 , 699408 , 732735 , 769399 , 773977 , 778584 , 779262 , 779627 , 780073 , 789779 , 791195 , 793296 , 793314 , 802067 , 811079 , 819111 , 824130 , 824904 , 826363 , 826369 );
Copy