3
11.64 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
337134
398504
793474
799433
727969
758237
751701
798928
799425
750028
466418
752517
728772
560242
73280
387372
419927
805212
771110
752502
423630
469265
771757
755173
726302
447785
626388
808515
793360
722482
669637
740997
721739
549076
579392
445320
632128
728786
704083
516687
470128
710286
758097
473737
382134
569536
813085
758122
573268
445327
697143
476119
762400
719001
606587
595708
497935
576980
644718
400936
494260
695123
422512
]
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 (337134 , 398504 , 793474 , 799433 , 727969 , 758237 , 751701 , 798928 , 799425 , 750028 , 466418 , 752517 , 728772 , 560242 , 73280 , 387372 , 419927 , 805212 , 771110 , 752502 , 423630 , 469265 , 771757 , 755173 , 726302 , 447785 , 626388 , 808515 , 793360 , 722482 , 669637 , 740997 , 721739 , 549076 , 579392 , 445320 , 632128 , 728786 , 704083 , 516687 , 470128 , 710286 , 758097 , 473737 , 382134 , 569536 , 813085 , 758122 , 573268 , 445327 , 697143 , 476119 , 762400 , 719001 , 606587 , 595708 , 497935 , 576980 , 644718 , 400936 , 494260 , 695123 , 422512 );
Copy
4
2.76 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
73280
337134
382134
387372
398504
400936
419927
422512
423630
445320
445327
447785
466418
469265
470128
473737
476119
494260
497935
516687
549076
560242
569536
573268
576980
579392
595708
606587
626388
632128
644718
669637
695123
697143
704083
710286
719001
721739
722482
726302
727969
728772
728786
740997
750028
751701
752502
752517
755173
758097
758122
758237
762400
771110
771757
793360
793474
798928
799425
799433
805212
808515
813085
]
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 (73280 , 337134 , 382134 , 387372 , 398504 , 400936 , 419927 , 422512 , 423630 , 445320 , 445327 , 447785 , 466418 , 469265 , 470128 , 473737 , 476119 , 494260 , 497935 , 516687 , 549076 , 560242 , 569536 , 573268 , 576980 , 579392 , 595708 , 606587 , 626388 , 632128 , 644718 , 669637 , 695123 , 697143 , 704083 , 710286 , 719001 , 721739 , 722482 , 726302 , 727969 , 728772 , 728786 , 740997 , 750028 , 751701 , 752502 , 752517 , 755173 , 758097 , 758122 , 758237 , 762400 , 771110 , 771757 , 793360 , 793474 , 798928 , 799425 , 799433 , 805212 , 808515 , 813085 );
Copy
5
98.14 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
73280
337134
382134
387372
398504
400936
419927
422512
423630
445320
445327
447785
466418
469265
470128
473737
476119
494260
497935
516687
549076
560242
569536
573268
576980
579392
595708
606587
626388
632128
644718
669637
695123
697143
704083
710286
719001
721739
722482
726302
727969
728772
728786
740997
750028
751701
752502
752517
755173
758097
758122
758237
762400
771110
771757
793360
793474
798928
799425
799433
805212
808515
813085
]
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 (73280 , 337134 , 382134 , 387372 , 398504 , 400936 , 419927 , 422512 , 423630 , 445320 , 445327 , 447785 , 466418 , 469265 , 470128 , 473737 , 476119 , 494260 , 497935 , 516687 , 549076 , 560242 , 569536 , 573268 , 576980 , 579392 , 595708 , 606587 , 626388 , 632128 , 644718 , 669637 , 695123 , 697143 , 704083 , 710286 , 719001 , 721739 , 722482 , 726302 , 727969 , 728772 , 728786 , 740997 , 750028 , 751701 , 752502 , 752517 , 755173 , 758097 , 758122 , 758237 , 762400 , 771110 , 771757 , 793360 , 793474 , 798928 , 799425 , 799433 , 805212 , 808515 , 813085 );
Copy