3
13.60 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
585123
555090
575479
502763
655693
625663
484432
596652
542759
557595
576103
464727
422151
514069
525011
538226
564992
670089
675798
659115
624064
597503
557948
659386
466176
470302
657361
573557
599368
575287
664435
657680
601891
519493
584419
567053
658418
651938
652594
659323
584461
611283
609205
620009
610303
621294
602761
485634
655647
607176
619005
604873
525337
652947
562740
590670
597134
621091
653560
622778
482944
657438
475891
584514
]
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 (585123 , 555090 , 575479 , 502763 , 655693 , 625663 , 484432 , 596652 , 542759 , 557595 , 576103 , 464727 , 422151 , 514069 , 525011 , 538226 , 564992 , 670089 , 675798 , 659115 , 624064 , 597503 , 557948 , 659386 , 466176 , 470302 , 657361 , 573557 , 599368 , 575287 , 664435 , 657680 , 601891 , 519493 , 584419 , 567053 , 658418 , 651938 , 652594 , 659323 , 584461 , 611283 , 609205 , 620009 , 610303 , 621294 , 602761 , 485634 , 655647 , 607176 , 619005 , 604873 , 525337 , 652947 , 562740 , 590670 , 597134 , 621091 , 653560 , 622778 , 482944 , 657438 , 475891 , 584514 );
Copy
4
2.30 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
422151
464727
466176
470302
475891
482944
484432
485634
502763
514069
519493
525011
525337
538226
542759
555090
557595
557948
562740
564992
567053
573557
575287
575479
576103
584419
584461
584514
585123
590670
596652
597134
597503
599368
601891
602761
604873
607176
609205
610303
611283
619005
620009
621091
621294
622778
624064
625663
651938
652594
652947
653560
655647
655693
657361
657438
657680
658418
659115
659323
659386
664435
670089
675798
]
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 (422151 , 464727 , 466176 , 470302 , 475891 , 482944 , 484432 , 485634 , 502763 , 514069 , 519493 , 525011 , 525337 , 538226 , 542759 , 555090 , 557595 , 557948 , 562740 , 564992 , 567053 , 573557 , 575287 , 575479 , 576103 , 584419 , 584461 , 584514 , 585123 , 590670 , 596652 , 597134 , 597503 , 599368 , 601891 , 602761 , 604873 , 607176 , 609205 , 610303 , 611283 , 619005 , 620009 , 621091 , 621294 , 622778 , 624064 , 625663 , 651938 , 652594 , 652947 , 653560 , 655647 , 655693 , 657361 , 657438 , 657680 , 658418 , 659115 , 659323 , 659386 , 664435 , 670089 , 675798 );
Copy
5
135.31 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
422151
464727
466176
470302
475891
482944
484432
485634
502763
514069
519493
525011
525337
538226
542759
555090
557595
557948
562740
564992
567053
573557
575287
575479
576103
584419
584461
584514
585123
590670
596652
597134
597503
599368
601891
602761
604873
607176
609205
610303
611283
619005
620009
621091
621294
622778
624064
625663
651938
652594
652947
653560
655647
655693
657361
657438
657680
658418
659115
659323
659386
664435
670089
675798
]
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 (422151 , 464727 , 466176 , 470302 , 475891 , 482944 , 484432 , 485634 , 502763 , 514069 , 519493 , 525011 , 525337 , 538226 , 542759 , 555090 , 557595 , 557948 , 562740 , 564992 , 567053 , 573557 , 575287 , 575479 , 576103 , 584419 , 584461 , 584514 , 585123 , 590670 , 596652 , 597134 , 597503 , 599368 , 601891 , 602761 , 604873 , 607176 , 609205 , 610303 , 611283 , 619005 , 620009 , 621091 , 621294 , 622778 , 624064 , 625663 , 651938 , 652594 , 652947 , 653560 , 655647 , 655693 , 657361 , 657438 , 657680 , 658418 , 659115 , 659323 , 659386 , 664435 , 670089 , 675798 );
Copy