83.81 ms (59.37%)
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
387016
401005
424190
424200
424427
428867
439767
440962
451496
451513
452302
452370
454270
455343
466930
467499
467503
472438
478981
481925
483423
483569
484406
490192
495040
498422
503838
505266
510042
511825
511827
514768
515523
515916
516155
517553
517559
518865
519147
519344
522744
524882
531172
534034
544502
549723
555090
556661
558316
559430
561369
564062
564716
586219
598992
599506
599844
599921
608041
614431
649516
714476
731663
783402
787131
798684
805146
]
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 (387016 , 401005 , 424190 , 424200 , 424427 , 428867 , 439767 , 440962 , 451496 , 451513 , 452302 , 452370 , 454270 , 455343 , 466930 , 467499 , 467503 , 472438 , 478981 , 481925 , 483423 , 483569 , 484406 , 490192 , 495040 , 498422 , 503838 , 505266 , 510042 , 511825 , 511827 , 514768 , 515523 , 515916 , 516155 , 517553 , 517559 , 518865 , 519147 , 519344 , 522744 , 524882 , 531172 , 534034 , 544502 , 549723 , 555090 , 556661 , 558316 , 559430 , 561369 , 564062 , 564716 , 586219 , 598992 , 599506 , 599844 , 599921 , 608041 , 614431 , 649516 , 714476 , 731663 , 783402 , 787131 , 798684 , 805146 );
Copy
14.04 ms (9.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
483423
555090
452302
467499
467503
481925
454270
519147
401005
515916
484406
439767
424427
503838
561369
614431
511827
490192
649516
783402
387016
428867
472438
495040
498422
505266
516155
524882
517553
483569
534034
564062
549723
714476
731663
452370
455343
522744
519344
511825
466930
608041
424200
440962
518865
544502
558316
559430
787131
451496
517559
598992
599506
531172
564716
798684
805146
451513
514768
586219
556661
424190
478981
515523
599921
510042
599844
]
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 (483423 , 555090 , 452302 , 467499 , 467503 , 481925 , 454270 , 519147 , 401005 , 515916 , 484406 , 439767 , 424427 , 503838 , 561369 , 614431 , 511827 , 490192 , 649516 , 783402 , 387016 , 428867 , 472438 , 495040 , 498422 , 505266 , 516155 , 524882 , 517553 , 483569 , 534034 , 564062 , 549723 , 714476 , 731663 , 452370 , 455343 , 522744 , 519344 , 511825 , 466930 , 608041 , 424200 , 440962 , 518865 , 544502 , 558316 , 559430 , 787131 , 451496 , 517559 , 598992 , 599506 , 531172 , 564716 , 798684 , 805146 , 451513 , 514768 , 586219 , 556661 , 424190 , 478981 , 515523 , 599921 , 510042 , 599844 );
Copy
2.76 ms (1.96%)
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
387016
401005
424190
424200
424427
428867
439767
440962
451496
451513
452302
452370
454270
455343
466930
467499
467503
472438
478981
481925
483423
483569
484406
490192
495040
498422
503838
505266
510042
511825
511827
514768
515523
515916
516155
517553
517559
518865
519147
519344
522744
524882
531172
534034
544502
549723
555090
556661
558316
559430
561369
564062
564716
586219
598992
599506
599844
599921
608041
614431
649516
714476
731663
783402
787131
798684
805146
]
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 (387016 , 401005 , 424190 , 424200 , 424427 , 428867 , 439767 , 440962 , 451496 , 451513 , 452302 , 452370 , 454270 , 455343 , 466930 , 467499 , 467503 , 472438 , 478981 , 481925 , 483423 , 483569 , 484406 , 490192 , 495040 , 498422 , 503838 , 505266 , 510042 , 511825 , 511827 , 514768 , 515523 , 515916 , 516155 , 517553 , 517559 , 518865 , 519147 , 519344 , 522744 , 524882 , 531172 , 534034 , 544502 , 549723 , 555090 , 556661 , 558316 , 559430 , 561369 , 564062 , 564716 , 586219 , 598992 , 599506 , 599844 , 599921 , 608041 , 614431 , 649516 , 714476 , 731663 , 783402 , 787131 , 798684 , 805146 );
Copy