100.00 ms (59.50%)
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
97047
385344
392538
393715
406301
420352
440680
446601
451246
454972
469604
470403
472854
473184
473533
479785
479792
481584
496269
498047
507512
515778
517788
518462
518755
522115
529216
536826
539210
545201
553061
556036
557611
560016
560131
560664
568641
571213
577402
581242
583507
586472
586484
586497
593964
594280
599143
602006
602935
604513
606748
615762
623264
632356
700547
716892
767025
782401
796981
809233
809508
814901
817203
]
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 (97047 , 385344 , 392538 , 393715 , 406301 , 420352 , 440680 , 446601 , 451246 , 454972 , 469604 , 470403 , 472854 , 473184 , 473533 , 479785 , 479792 , 481584 , 496269 , 498047 , 507512 , 515778 , 517788 , 518462 , 518755 , 522115 , 529216 , 536826 , 539210 , 545201 , 553061 , 556036 , 557611 , 560016 , 560131 , 560664 , 568641 , 571213 , 577402 , 581242 , 583507 , 586472 , 586484 , 586497 , 593964 , 594280 , 599143 , 602006 , 602935 , 604513 , 606748 , 615762 , 623264 , 632356 , 700547 , 716892 , 767025 , 782401 , 796981 , 809233 , 809508 , 814901 , 817203 );
Copy
11.01 ms (6.55%)
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
392538
406301
536826
767025
472854
817203
782401
470403
700547
560131
632356
469604
545201
581242
473533
809233
507512
602006
479785
560016
568641
599143
602935
479792
518755
522115
577402
446601
557611
440680
454972
615762
560664
481584
420352
515778
518462
553061
529216
586472
556036
809508
716892
539210
604513
496269
97047
796981
593964
473184
517788
814901
586497
393715
594280
606748
571213
623264
498047
583507
385344
451246
586484
]
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 (392538 , 406301 , 536826 , 767025 , 472854 , 817203 , 782401 , 470403 , 700547 , 560131 , 632356 , 469604 , 545201 , 581242 , 473533 , 809233 , 507512 , 602006 , 479785 , 560016 , 568641 , 599143 , 602935 , 479792 , 518755 , 522115 , 577402 , 446601 , 557611 , 440680 , 454972 , 615762 , 560664 , 481584 , 420352 , 515778 , 518462 , 553061 , 529216 , 586472 , 556036 , 809508 , 716892 , 539210 , 604513 , 496269 , 97047 , 796981 , 593964 , 473184 , 517788 , 814901 , 586497 , 393715 , 594280 , 606748 , 571213 , 623264 , 498047 , 583507 , 385344 , 451246 , 586484 );
Copy
2.77 ms (1.65%)
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
97047
385344
392538
393715
406301
420352
440680
446601
451246
454972
469604
470403
472854
473184
473533
479785
479792
481584
496269
498047
507512
515778
517788
518462
518755
522115
529216
536826
539210
545201
553061
556036
557611
560016
560131
560664
568641
571213
577402
581242
583507
586472
586484
586497
593964
594280
599143
602006
602935
604513
606748
615762
623264
632356
700547
716892
767025
782401
796981
809233
809508
814901
817203
]
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 (97047 , 385344 , 392538 , 393715 , 406301 , 420352 , 440680 , 446601 , 451246 , 454972 , 469604 , 470403 , 472854 , 473184 , 473533 , 479785 , 479792 , 481584 , 496269 , 498047 , 507512 , 515778 , 517788 , 518462 , 518755 , 522115 , 529216 , 536826 , 539210 , 545201 , 553061 , 556036 , 557611 , 560016 , 560131 , 560664 , 568641 , 571213 , 577402 , 581242 , 583507 , 586472 , 586484 , 586497 , 593964 , 594280 , 599143 , 602006 , 602935 , 604513 , 606748 , 615762 , 623264 , 632356 , 700547 , 716892 , 767025 , 782401 , 796981 , 809233 , 809508 , 814901 , 817203 );
Copy