115.39 ms (83.29%)
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
384769
399688
407769
427966
443040
447877
448368
448703
451263
457987
467340
479002
485357
491725
497715
504641
507376
510428
510550
512855
513025
513032
513033
514070
518774
518850
524234
525731
535986
536835
537945
541185
541642
543547
544640
552715
552718
559121
560646
561117
562848
563540
565099
568480
574269
574460
575787
582521
584950
592440
592971
593210
607181
607204
618387
618563
619401
621463
621976
626838
642556
645241
650200
666784
666865
742526
743494
807976
808229
814931
]
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 (384769 , 399688 , 407769 , 427966 , 443040 , 447877 , 448368 , 448703 , 451263 , 457987 , 467340 , 479002 , 485357 , 491725 , 497715 , 504641 , 507376 , 510428 , 510550 , 512855 , 513025 , 513032 , 513033 , 514070 , 518774 , 518850 , 524234 , 525731 , 535986 , 536835 , 537945 , 541185 , 541642 , 543547 , 544640 , 552715 , 552718 , 559121 , 560646 , 561117 , 562848 , 563540 , 565099 , 568480 , 574269 , 574460 , 575787 , 582521 , 584950 , 592440 , 592971 , 593210 , 607181 , 607204 , 618387 , 618563 , 619401 , 621463 , 621976 , 626838 , 642556 , 645241 , 650200 , 666784 , 666865 , 742526 , 743494 , 807976 , 808229 , 814931 );
Copy
11.00 ms (7.94%)
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
504641
524234
535986
485357
552715
552718
575787
650200
562848
618387
626838
742526
743494
807976
808229
448703
518850
384769
814931
467340
541185
565099
582521
584950
543547
563540
592971
607181
618563
642556
593210
607204
621976
399688
510428
497715
407769
448368
512855
513032
518774
536835
544640
574269
645241
619401
447877
491725
427966
443040
561117
559121
666784
592440
451263
513033
537945
510550
457987
507376
574460
479002
568480
621463
525731
513025
560646
541642
666865
514070
]
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 (504641 , 524234 , 535986 , 485357 , 552715 , 552718 , 575787 , 650200 , 562848 , 618387 , 626838 , 742526 , 743494 , 807976 , 808229 , 448703 , 518850 , 384769 , 814931 , 467340 , 541185 , 565099 , 582521 , 584950 , 543547 , 563540 , 592971 , 607181 , 618563 , 642556 , 593210 , 607204 , 621976 , 399688 , 510428 , 497715 , 407769 , 448368 , 512855 , 513032 , 518774 , 536835 , 544640 , 574269 , 645241 , 619401 , 447877 , 491725 , 427966 , 443040 , 561117 , 559121 , 666784 , 592440 , 451263 , 513033 , 537945 , 510550 , 457987 , 507376 , 574460 , 479002 , 568480 , 621463 , 525731 , 513025 , 560646 , 541642 , 666865 , 514070 );
Copy
2.40 ms (1.73%)
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
384769
399688
407769
427966
443040
447877
448368
448703
451263
457987
467340
479002
485357
491725
497715
504641
507376
510428
510550
512855
513025
513032
513033
514070
518774
518850
524234
525731
535986
536835
537945
541185
541642
543547
544640
552715
552718
559121
560646
561117
562848
563540
565099
568480
574269
574460
575787
582521
584950
592440
592971
593210
607181
607204
618387
618563
619401
621463
621976
626838
642556
645241
650200
666784
666865
742526
743494
807976
808229
814931
]
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 (384769 , 399688 , 407769 , 427966 , 443040 , 447877 , 448368 , 448703 , 451263 , 457987 , 467340 , 479002 , 485357 , 491725 , 497715 , 504641 , 507376 , 510428 , 510550 , 512855 , 513025 , 513032 , 513033 , 514070 , 518774 , 518850 , 524234 , 525731 , 535986 , 536835 , 537945 , 541185 , 541642 , 543547 , 544640 , 552715 , 552718 , 559121 , 560646 , 561117 , 562848 , 563540 , 565099 , 568480 , 574269 , 574460 , 575787 , 582521 , 584950 , 592440 , 592971 , 593210 , 607181 , 607204 , 618387 , 618563 , 619401 , 621463 , 621976 , 626838 , 642556 , 645241 , 650200 , 666784 , 666865 , 742526 , 743494 , 807976 , 808229 , 814931 );
Copy