122.63 ms (66.10%)
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
406109
413544
419133
425675
430215
438374
450964
451473
451816
457045
457676
462488
462859
463154
479239
489343
493845
500016
502540
504756
506299
507880
512528
512885
512998
518491
519215
519325
519333
523342
524530
524620
525398
525440
532643
532983
535006
535024
537929
548046
557812
560205
564992
568399
568463
582920
585123
586556
593880
597753
599520
601859
603384
609370
613220
614853
625001
625359
637129
638967
642657
648257
660405
666016
676887
679801
695870
815383
]
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 (406109 , 413544 , 419133 , 425675 , 430215 , 438374 , 450964 , 451473 , 451816 , 457045 , 457676 , 462488 , 462859 , 463154 , 479239 , 489343 , 493845 , 500016 , 502540 , 504756 , 506299 , 507880 , 512528 , 512885 , 512998 , 518491 , 519215 , 519325 , 519333 , 523342 , 524530 , 524620 , 525398 , 525440 , 532643 , 532983 , 535006 , 535024 , 537929 , 548046 , 557812 , 560205 , 564992 , 568399 , 568463 , 582920 , 585123 , 586556 , 593880 , 597753 , 599520 , 601859 , 603384 , 609370 , 613220 , 614853 , 625001 , 625359 , 637129 , 638967 , 642657 , 648257 , 660405 , 666016 , 676887 , 679801 , 695870 , 815383 );
Copy
20.99 ms (11.31%)
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
609370
425675
493845
519333
599520
642657
479239
568463
419133
585123
457045
637129
430215
815383
504756
523342
525440
676887
582920
601859
597753
660405
666016
586556
603384
512528
525398
413544
518491
532983
535024
593880
406109
451816
462859
463154
451473
519215
500016
512998
537929
462488
535006
438374
450964
519325
695870
557812
506299
564992
524530
502540
568399
489343
548046
679801
638967
507880
532643
512885
613220
614853
524620
457676
625359
560205
625001
648257
]
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 (609370 , 425675 , 493845 , 519333 , 599520 , 642657 , 479239 , 568463 , 419133 , 585123 , 457045 , 637129 , 430215 , 815383 , 504756 , 523342 , 525440 , 676887 , 582920 , 601859 , 597753 , 660405 , 666016 , 586556 , 603384 , 512528 , 525398 , 413544 , 518491 , 532983 , 535024 , 593880 , 406109 , 451816 , 462859 , 463154 , 451473 , 519215 , 500016 , 512998 , 537929 , 462488 , 535006 , 438374 , 450964 , 519325 , 695870 , 557812 , 506299 , 564992 , 524530 , 502540 , 568399 , 489343 , 548046 , 679801 , 638967 , 507880 , 532643 , 512885 , 613220 , 614853 , 524620 , 457676 , 625359 , 560205 , 625001 , 648257 );
Copy
1.98 ms (1.07%)
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
406109
413544
419133
425675
430215
438374
450964
451473
451816
457045
457676
462488
462859
463154
479239
489343
493845
500016
502540
504756
506299
507880
512528
512885
512998
518491
519215
519325
519333
523342
524530
524620
525398
525440
532643
532983
535006
535024
537929
548046
557812
560205
564992
568399
568463
582920
585123
586556
593880
597753
599520
601859
603384
609370
613220
614853
625001
625359
637129
638967
642657
648257
660405
666016
676887
679801
695870
815383
]
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 (406109 , 413544 , 419133 , 425675 , 430215 , 438374 , 450964 , 451473 , 451816 , 457045 , 457676 , 462488 , 462859 , 463154 , 479239 , 489343 , 493845 , 500016 , 502540 , 504756 , 506299 , 507880 , 512528 , 512885 , 512998 , 518491 , 519215 , 519325 , 519333 , 523342 , 524530 , 524620 , 525398 , 525440 , 532643 , 532983 , 535006 , 535024 , 537929 , 548046 , 557812 , 560205 , 564992 , 568399 , 568463 , 582920 , 585123 , 586556 , 593880 , 597753 , 599520 , 601859 , 603384 , 609370 , 613220 , 614853 , 625001 , 625359 , 637129 , 638967 , 642657 , 648257 , 660405 , 666016 , 676887 , 679801 , 695870 , 815383 );
Copy