4
12.35 ms
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
540550
521253
590368
744849
564252
508203
603057
571149
549178
593620
458141
543764
610589
512786
576516
593768
517006
521195
511542
558738
510840
573357
482549
562271
611986
626842
794772
466756
550531
815028
553545
640051
599136
517624
556908
659182
485346
407109
515794
587878
619565
528083
495416
428952
558905
431262
565795
617132
623876
522035
521818
564007
584720
655697
659347
652572
618717
600046
407597
550641
624109
613169
526052
624428
464328
]
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 (540550 , 521253 , 590368 , 744849 , 564252 , 508203 , 603057 , 571149 , 549178 , 593620 , 458141 , 543764 , 610589 , 512786 , 576516 , 593768 , 517006 , 521195 , 511542 , 558738 , 510840 , 573357 , 482549 , 562271 , 611986 , 626842 , 794772 , 466756 , 550531 , 815028 , 553545 , 640051 , 599136 , 517624 , 556908 , 659182 , 485346 , 407109 , 515794 , 587878 , 619565 , 528083 , 495416 , 428952 , 558905 , 431262 , 565795 , 617132 , 623876 , 522035 , 521818 , 564007 , 584720 , 655697 , 659347 , 652572 , 618717 , 600046 , 407597 , 550641 , 624109 , 613169 , 526052 , 624428 , 464328 );
Copy
5
2.60 ms
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
407109
407597
428952
431262
458141
464328
466756
482549
485346
495416
508203
510840
511542
512786
515794
517006
517624
521195
521253
521818
522035
526052
528083
540550
543764
549178
550531
550641
553545
556908
558738
558905
562271
564007
564252
565795
571149
573357
576516
584720
587878
590368
593620
593768
599136
600046
603057
610589
611986
613169
617132
618717
619565
623876
624109
624428
626842
640051
652572
655697
659182
659347
744849
794772
815028
]
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 (407109 , 407597 , 428952 , 431262 , 458141 , 464328 , 466756 , 482549 , 485346 , 495416 , 508203 , 510840 , 511542 , 512786 , 515794 , 517006 , 517624 , 521195 , 521253 , 521818 , 522035 , 526052 , 528083 , 540550 , 543764 , 549178 , 550531 , 550641 , 553545 , 556908 , 558738 , 558905 , 562271 , 564007 , 564252 , 565795 , 571149 , 573357 , 576516 , 584720 , 587878 , 590368 , 593620 , 593768 , 599136 , 600046 , 603057 , 610589 , 611986 , 613169 , 617132 , 618717 , 619565 , 623876 , 624109 , 624428 , 626842 , 640051 , 652572 , 655697 , 659182 , 659347 , 744849 , 794772 , 815028 );
Copy
6
79.45 ms
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
407109
407597
428952
431262
458141
464328
466756
482549
485346
495416
508203
510840
511542
512786
515794
517006
517624
521195
521253
521818
522035
526052
528083
540550
543764
549178
550531
550641
553545
556908
558738
558905
562271
564007
564252
565795
571149
573357
576516
584720
587878
590368
593620
593768
599136
600046
603057
610589
611986
613169
617132
618717
619565
623876
624109
624428
626842
640051
652572
655697
659182
659347
744849
794772
815028
]
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 (407109 , 407597 , 428952 , 431262 , 458141 , 464328 , 466756 , 482549 , 485346 , 495416 , 508203 , 510840 , 511542 , 512786 , 515794 , 517006 , 517624 , 521195 , 521253 , 521818 , 522035 , 526052 , 528083 , 540550 , 543764 , 549178 , 550531 , 550641 , 553545 , 556908 , 558738 , 558905 , 562271 , 564007 , 564252 , 565795 , 571149 , 573357 , 576516 , 584720 , 587878 , 590368 , 593620 , 593768 , 599136 , 600046 , 603057 , 610589 , 611986 , 613169 , 617132 , 618717 , 619565 , 623876 , 624109 , 624428 , 626842 , 640051 , 652572 , 655697 , 659182 , 659347 , 744849 , 794772 , 815028 );
Copy