74.46 ms (73.61%)
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
403850
415896
423488
437285
441405
447572
451266
452704
468842
469502
470022
479469
479891
483690
483760
486397
489210
500031
509622
517176
519045
524929
534946
541804
541849
551121
555495
558780
567777
569352
574408
576699
577370
578310
587181
588883
591432
592758
592795
602405
602569
603058
609133
620597
634259
638552
639293
646324
650056
667047
669857
669867
670643
677172
684690
711710
713992
719200
729370
756513
765976
768947
771375
773572
782431
784591
799122
825577
]
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 (403850 , 415896 , 423488 , 437285 , 441405 , 447572 , 451266 , 452704 , 468842 , 469502 , 470022 , 479469 , 479891 , 483690 , 483760 , 486397 , 489210 , 500031 , 509622 , 517176 , 519045 , 524929 , 534946 , 541804 , 541849 , 551121 , 555495 , 558780 , 567777 , 569352 , 574408 , 576699 , 577370 , 578310 , 587181 , 588883 , 591432 , 592758 , 592795 , 602405 , 602569 , 603058 , 609133 , 620597 , 634259 , 638552 , 639293 , 646324 , 650056 , 667047 , 669857 , 669867 , 670643 , 677172 , 684690 , 711710 , 713992 , 719200 , 729370 , 756513 , 765976 , 768947 , 771375 , 773572 , 782431 , 784591 , 799122 , 825577 );
Copy
8.83 ms (8.73%)
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
646324
479891
519045
569352
713992
711710
771375
768947
667047
634259
782431
669867
756513
719200
765976
403850
799122
825577
639293
773572
483690
729370
669857
555495
587181
441405
469502
784591
602405
684690
592795
483760
524929
578310
558780
534946
574408
588883
486397
620597
452704
677172
603058
423488
489210
670643
447572
479469
592758
576699
551121
638552
567777
650056
609133
451266
577370
415896
470022
437285
517176
500031
468842
591432
509622
541849
602569
541804
]
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 (646324 , 479891 , 519045 , 569352 , 713992 , 711710 , 771375 , 768947 , 667047 , 634259 , 782431 , 669867 , 756513 , 719200 , 765976 , 403850 , 799122 , 825577 , 639293 , 773572 , 483690 , 729370 , 669857 , 555495 , 587181 , 441405 , 469502 , 784591 , 602405 , 684690 , 592795 , 483760 , 524929 , 578310 , 558780 , 534946 , 574408 , 588883 , 486397 , 620597 , 452704 , 677172 , 603058 , 423488 , 489210 , 670643 , 447572 , 479469 , 592758 , 576699 , 551121 , 638552 , 567777 , 650056 , 609133 , 451266 , 577370 , 415896 , 470022 , 437285 , 517176 , 500031 , 468842 , 591432 , 509622 , 541849 , 602569 , 541804 );
Copy
2.70 ms (2.67%)
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
403850
415896
423488
437285
441405
447572
451266
452704
468842
469502
470022
479469
479891
483690
483760
486397
489210
500031
509622
517176
519045
524929
534946
541804
541849
551121
555495
558780
567777
569352
574408
576699
577370
578310
587181
588883
591432
592758
592795
602405
602569
603058
609133
620597
634259
638552
639293
646324
650056
667047
669857
669867
670643
677172
684690
711710
713992
719200
729370
756513
765976
768947
771375
773572
782431
784591
799122
825577
]
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 (403850 , 415896 , 423488 , 437285 , 441405 , 447572 , 451266 , 452704 , 468842 , 469502 , 470022 , 479469 , 479891 , 483690 , 483760 , 486397 , 489210 , 500031 , 509622 , 517176 , 519045 , 524929 , 534946 , 541804 , 541849 , 551121 , 555495 , 558780 , 567777 , 569352 , 574408 , 576699 , 577370 , 578310 , 587181 , 588883 , 591432 , 592758 , 592795 , 602405 , 602569 , 603058 , 609133 , 620597 , 634259 , 638552 , 639293 , 646324 , 650056 , 667047 , 669857 , 669867 , 670643 , 677172 , 684690 , 711710 , 713992 , 719200 , 729370 , 756513 , 765976 , 768947 , 771375 , 773572 , 782431 , 784591 , 799122 , 825577 );
Copy