82.21 ms (60.54%)
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
91510
96484
387106
396218
397982
407433
420481
421550
423612
423633
426139
426571
429341
430858
432779
433635
435398
442442
443229
445022
450251
453170
464598
466916
468548
471172
472755
473774
477553
478480
491487
495550
495673
500700
501119
502559
512189
515572
520739
522148
551973
571468
576450
577553
581683
585898
587587
594283
597793
605741
607755
609896
616025
622607
648549
666561
668936
669296
671578
673813
675409
687185
709916
730098
742124
799367
818787
]
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 (91510 , 96484 , 387106 , 396218 , 397982 , 407433 , 420481 , 421550 , 423612 , 423633 , 426139 , 426571 , 429341 , 430858 , 432779 , 433635 , 435398 , 442442 , 443229 , 445022 , 450251 , 453170 , 464598 , 466916 , 468548 , 471172 , 472755 , 473774 , 477553 , 478480 , 491487 , 495550 , 495673 , 500700 , 501119 , 502559 , 512189 , 515572 , 520739 , 522148 , 551973 , 571468 , 576450 , 577553 , 581683 , 585898 , 587587 , 594283 , 597793 , 605741 , 607755 , 609896 , 616025 , 622607 , 648549 , 666561 , 668936 , 669296 , 671578 , 673813 , 675409 , 687185 , 709916 , 730098 , 742124 , 799367 , 818787 );
Copy
10.46 ms (7.71%)
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
576450
607755
605741
742124
464598
818787
675409
673813
495550
491487
429341
387106
669296
587587
450251
396218
472755
96484
430858
500700
453170
473774
648549
671578
666561
585898
577553
622607
799367
407433
477553
442442
668936
433635
522148
443229
471172
594283
91510
420481
421550
551973
609896
432779
515572
616025
709916
495673
687185
730098
478480
512189
571468
597793
466916
426571
397982
426139
502559
423633
581683
435398
445022
423612
468548
520739
501119
]
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 (576450 , 607755 , 605741 , 742124 , 464598 , 818787 , 675409 , 673813 , 495550 , 491487 , 429341 , 387106 , 669296 , 587587 , 450251 , 396218 , 472755 , 96484 , 430858 , 500700 , 453170 , 473774 , 648549 , 671578 , 666561 , 585898 , 577553 , 622607 , 799367 , 407433 , 477553 , 442442 , 668936 , 433635 , 522148 , 443229 , 471172 , 594283 , 91510 , 420481 , 421550 , 551973 , 609896 , 432779 , 515572 , 616025 , 709916 , 495673 , 687185 , 730098 , 478480 , 512189 , 571468 , 597793 , 466916 , 426571 , 397982 , 426139 , 502559 , 423633 , 581683 , 435398 , 445022 , 423612 , 468548 , 520739 , 501119 );
Copy
2.57 ms (1.89%)
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
91510
96484
387106
396218
397982
407433
420481
421550
423612
423633
426139
426571
429341
430858
432779
433635
435398
442442
443229
445022
450251
453170
464598
466916
468548
471172
472755
473774
477553
478480
491487
495550
495673
500700
501119
502559
512189
515572
520739
522148
551973
571468
576450
577553
581683
585898
587587
594283
597793
605741
607755
609896
616025
622607
648549
666561
668936
669296
671578
673813
675409
687185
709916
730098
742124
799367
818787
]
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 (91510 , 96484 , 387106 , 396218 , 397982 , 407433 , 420481 , 421550 , 423612 , 423633 , 426139 , 426571 , 429341 , 430858 , 432779 , 433635 , 435398 , 442442 , 443229 , 445022 , 450251 , 453170 , 464598 , 466916 , 468548 , 471172 , 472755 , 473774 , 477553 , 478480 , 491487 , 495550 , 495673 , 500700 , 501119 , 502559 , 512189 , 515572 , 520739 , 522148 , 551973 , 571468 , 576450 , 577553 , 581683 , 585898 , 587587 , 594283 , 597793 , 605741 , 607755 , 609896 , 616025 , 622607 , 648549 , 666561 , 668936 , 669296 , 671578 , 673813 , 675409 , 687185 , 709916 , 730098 , 742124 , 799367 , 818787 );
Copy