75.24 ms (67.94%)
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
397335
431090
447079
456630
456661
476055
485155
485788
491699
511231
511370
512726
514294
517841
519576
519679
522398
525249
525542
526452
527669
530369
536655
537199
540339
542567
552319
554309
556661
558951
559009
559183
560152
560769
564453
565250
566708
567863
569450
570594
571561
573263
577544
582227
587651
594400
597240
599030
599836
601517
603858
606681
606697
613934
614273
623716
633444
634148
640759
642662
650127
653507
]
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 (397335 , 431090 , 447079 , 456630 , 456661 , 476055 , 485155 , 485788 , 491699 , 511231 , 511370 , 512726 , 514294 , 517841 , 519576 , 519679 , 522398 , 525249 , 525542 , 526452 , 527669 , 530369 , 536655 , 537199 , 540339 , 542567 , 552319 , 554309 , 556661 , 558951 , 559009 , 559183 , 560152 , 560769 , 564453 , 565250 , 566708 , 567863 , 569450 , 570594 , 571561 , 573263 , 577544 , 582227 , 587651 , 594400 , 597240 , 599030 , 599836 , 601517 , 603858 , 606681 , 606697 , 613934 , 614273 , 623716 , 633444 , 634148 , 640759 , 642662 , 650127 , 653507 );
Copy
15.00 ms (13.54%)
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
512726
476055
577544
573263
606681
634148
397335
456661
431090
447079
526452
491699
525542
536655
522398
569450
570594
560152
565250
567863
554309
559009
603858
601517
640759
633444
485788
485155
519679
542567
566708
552319
650127
556661
582227
599836
456630
517841
614273
540339
511370
537199
525249
558951
560769
623716
527669
571561
653507
564453
599030
514294
597240
642662
519576
559183
587651
594400
613934
511231
530369
606697
]
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 (512726 , 476055 , 577544 , 573263 , 606681 , 634148 , 397335 , 456661 , 431090 , 447079 , 526452 , 491699 , 525542 , 536655 , 522398 , 569450 , 570594 , 560152 , 565250 , 567863 , 554309 , 559009 , 603858 , 601517 , 640759 , 633444 , 485788 , 485155 , 519679 , 542567 , 566708 , 552319 , 650127 , 556661 , 582227 , 599836 , 456630 , 517841 , 614273 , 540339 , 511370 , 537199 , 525249 , 558951 , 560769 , 623716 , 527669 , 571561 , 653507 , 564453 , 599030 , 514294 , 597240 , 642662 , 519576 , 559183 , 587651 , 594400 , 613934 , 511231 , 530369 , 606697 );
Copy
2.06 ms (1.86%)
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
397335
431090
447079
456630
456661
476055
485155
485788
491699
511231
511370
512726
514294
517841
519576
519679
522398
525249
525542
526452
527669
530369
536655
537199
540339
542567
552319
554309
556661
558951
559009
559183
560152
560769
564453
565250
566708
567863
569450
570594
571561
573263
577544
582227
587651
594400
597240
599030
599836
601517
603858
606681
606697
613934
614273
623716
633444
634148
640759
642662
650127
653507
]
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 (397335 , 431090 , 447079 , 456630 , 456661 , 476055 , 485155 , 485788 , 491699 , 511231 , 511370 , 512726 , 514294 , 517841 , 519576 , 519679 , 522398 , 525249 , 525542 , 526452 , 527669 , 530369 , 536655 , 537199 , 540339 , 542567 , 552319 , 554309 , 556661 , 558951 , 559009 , 559183 , 560152 , 560769 , 564453 , 565250 , 566708 , 567863 , 569450 , 570594 , 571561 , 573263 , 577544 , 582227 , 587651 , 594400 , 597240 , 599030 , 599836 , 601517 , 603858 , 606681 , 606697 , 613934 , 614273 , 623716 , 633444 , 634148 , 640759 , 642662 , 650127 , 653507 );
Copy