4
12.03 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
575104
575748
575792
694028
679461
696214
610011
630284
623973
614715
623962
597152
408439
428603
507668
525957
445728
482936
534979
534993
532567
535024
485996
576344
576030
650955
579633
635219
784158
428392
472286
520630
526188
576628
574507
679816
639762
597119
788264
424523
452606
518470
495608
535006
567140
678052
637044
634212
417787
507666
529949
615716
534984
567141
601110
478065
523290
507680
567139
597112
529200
542550
541588
575197
601101
]
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 (575104 , 575748 , 575792 , 694028 , 679461 , 696214 , 610011 , 630284 , 623973 , 614715 , 623962 , 597152 , 408439 , 428603 , 507668 , 525957 , 445728 , 482936 , 534979 , 534993 , 532567 , 535024 , 485996 , 576344 , 576030 , 650955 , 579633 , 635219 , 784158 , 428392 , 472286 , 520630 , 526188 , 576628 , 574507 , 679816 , 639762 , 597119 , 788264 , 424523 , 452606 , 518470 , 495608 , 535006 , 567140 , 678052 , 637044 , 634212 , 417787 , 507666 , 529949 , 615716 , 534984 , 567141 , 601110 , 478065 , 523290 , 507680 , 567139 , 597112 , 529200 , 542550 , 541588 , 575197 , 601101 );
Copy
5
2.26 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
408439
417787
424523
428392
428603
445728
452606
472286
478065
482936
485996
495608
507666
507668
507680
518470
520630
523290
525957
526188
529200
529949
532567
534979
534984
534993
535006
535024
541588
542550
567139
567140
567141
574507
575104
575197
575748
575792
576030
576344
576628
579633
597112
597119
597152
601101
601110
610011
614715
615716
623962
623973
630284
634212
635219
637044
639762
650955
678052
679461
679816
694028
696214
784158
788264
]
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 (408439 , 417787 , 424523 , 428392 , 428603 , 445728 , 452606 , 472286 , 478065 , 482936 , 485996 , 495608 , 507666 , 507668 , 507680 , 518470 , 520630 , 523290 , 525957 , 526188 , 529200 , 529949 , 532567 , 534979 , 534984 , 534993 , 535006 , 535024 , 541588 , 542550 , 567139 , 567140 , 567141 , 574507 , 575104 , 575197 , 575748 , 575792 , 576030 , 576344 , 576628 , 579633 , 597112 , 597119 , 597152 , 601101 , 601110 , 610011 , 614715 , 615716 , 623962 , 623973 , 630284 , 634212 , 635219 , 637044 , 639762 , 650955 , 678052 , 679461 , 679816 , 694028 , 696214 , 784158 , 788264 );
Copy
6
85.00 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
408439
417787
424523
428392
428603
445728
452606
472286
478065
482936
485996
495608
507666
507668
507680
518470
520630
523290
525957
526188
529200
529949
532567
534979
534984
534993
535006
535024
541588
542550
567139
567140
567141
574507
575104
575197
575748
575792
576030
576344
576628
579633
597112
597119
597152
601101
601110
610011
614715
615716
623962
623973
630284
634212
635219
637044
639762
650955
678052
679461
679816
694028
696214
784158
788264
]
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 (408439 , 417787 , 424523 , 428392 , 428603 , 445728 , 452606 , 472286 , 478065 , 482936 , 485996 , 495608 , 507666 , 507668 , 507680 , 518470 , 520630 , 523290 , 525957 , 526188 , 529200 , 529949 , 532567 , 534979 , 534984 , 534993 , 535006 , 535024 , 541588 , 542550 , 567139 , 567140 , 567141 , 574507 , 575104 , 575197 , 575748 , 575792 , 576030 , 576344 , 576628 , 579633 , 597112 , 597119 , 597152 , 601101 , 601110 , 610011 , 614715 , 615716 , 623962 , 623973 , 630284 , 634212 , 635219 , 637044 , 639762 , 650955 , 678052 , 679461 , 679816 , 694028 , 696214 , 784158 , 788264 );
Copy