3
10.31 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
457061
768647
677893
826580
757282
723948
791631
755138
777272
583194
778211
762579
800202
714376
762577
595107
594497
810490
810974
396627
722673
573286
527214
791508
735387
799103
763869
606289
465830
716159
748725
576445
392857
12066
727684
768538
465899
788915
393738
570325
387175
452740
536690
386894
585345
595037
555050
603187
589756
817319
818998
794362
807518
592413
428664
485082
429069
491922
488003
516636
581269
681413
472833
521173
482101
419783
490875
638967
]
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 (457061 , 768647 , 677893 , 826580 , 757282 , 723948 , 791631 , 755138 , 777272 , 583194 , 778211 , 762579 , 800202 , 714376 , 762577 , 595107 , 594497 , 810490 , 810974 , 396627 , 722673 , 573286 , 527214 , 791508 , 735387 , 799103 , 763869 , 606289 , 465830 , 716159 , 748725 , 576445 , 392857 , 12066 , 727684 , 768538 , 465899 , 788915 , 393738 , 570325 , 387175 , 452740 , 536690 , 386894 , 585345 , 595037 , 555050 , 603187 , 589756 , 817319 , 818998 , 794362 , 807518 , 592413 , 428664 , 485082 , 429069 , 491922 , 488003 , 516636 , 581269 , 681413 , 472833 , 521173 , 482101 , 419783 , 490875 , 638967 );
Copy
4
3.06 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
12066
386894
387175
392857
393738
396627
419783
428664
429069
452740
457061
465830
465899
472833
482101
485082
488003
490875
491922
516636
521173
527214
536690
555050
570325
573286
576445
581269
583194
585345
589756
592413
594497
595037
595107
603187
606289
638967
677893
681413
714376
716159
722673
723948
727684
735387
748725
755138
757282
762577
762579
763869
768538
768647
777272
778211
788915
791508
791631
794362
799103
800202
807518
810490
810974
817319
818998
826580
]
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 (12066 , 386894 , 387175 , 392857 , 393738 , 396627 , 419783 , 428664 , 429069 , 452740 , 457061 , 465830 , 465899 , 472833 , 482101 , 485082 , 488003 , 490875 , 491922 , 516636 , 521173 , 527214 , 536690 , 555050 , 570325 , 573286 , 576445 , 581269 , 583194 , 585345 , 589756 , 592413 , 594497 , 595037 , 595107 , 603187 , 606289 , 638967 , 677893 , 681413 , 714376 , 716159 , 722673 , 723948 , 727684 , 735387 , 748725 , 755138 , 757282 , 762577 , 762579 , 763869 , 768538 , 768647 , 777272 , 778211 , 788915 , 791508 , 791631 , 794362 , 799103 , 800202 , 807518 , 810490 , 810974 , 817319 , 818998 , 826580 );
Copy
5
140.79 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
12066
386894
387175
392857
393738
396627
419783
428664
429069
452740
457061
465830
465899
472833
482101
485082
488003
490875
491922
516636
521173
527214
536690
555050
570325
573286
576445
581269
583194
585345
589756
592413
594497
595037
595107
603187
606289
638967
677893
681413
714376
716159
722673
723948
727684
735387
748725
755138
757282
762577
762579
763869
768538
768647
777272
778211
788915
791508
791631
794362
799103
800202
807518
810490
810974
817319
818998
826580
]
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 (12066 , 386894 , 387175 , 392857 , 393738 , 396627 , 419783 , 428664 , 429069 , 452740 , 457061 , 465830 , 465899 , 472833 , 482101 , 485082 , 488003 , 490875 , 491922 , 516636 , 521173 , 527214 , 536690 , 555050 , 570325 , 573286 , 576445 , 581269 , 583194 , 585345 , 589756 , 592413 , 594497 , 595037 , 595107 , 603187 , 606289 , 638967 , 677893 , 681413 , 714376 , 716159 , 722673 , 723948 , 727684 , 735387 , 748725 , 755138 , 757282 , 762577 , 762579 , 763869 , 768538 , 768647 , 777272 , 778211 , 788915 , 791508 , 791631 , 794362 , 799103 , 800202 , 807518 , 810490 , 810974 , 817319 , 818998 , 826580 );
Copy