3
13.14 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
810665
788994
787075
722846
421073
459401
455876
511536
518589
529478
400233
815063
466930
477361
533831
526420
528149
552270
590079
600864
602607
810933
804104
625171
791048
437598
402141
421357
515604
522441
446148
463773
533289
527243
523814
544486
546015
581882
593534
605395
447315
524560
527232
491478
514768
522604
536903
501179
552984
581720
421151
508554
528093
596851
456518
523172
454709
461906
460612
521446
653325
560176
632579
584873
589048
621265
453313
]
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 (810665 , 788994 , 787075 , 722846 , 421073 , 459401 , 455876 , 511536 , 518589 , 529478 , 400233 , 815063 , 466930 , 477361 , 533831 , 526420 , 528149 , 552270 , 590079 , 600864 , 602607 , 810933 , 804104 , 625171 , 791048 , 437598 , 402141 , 421357 , 515604 , 522441 , 446148 , 463773 , 533289 , 527243 , 523814 , 544486 , 546015 , 581882 , 593534 , 605395 , 447315 , 524560 , 527232 , 491478 , 514768 , 522604 , 536903 , 501179 , 552984 , 581720 , 421151 , 508554 , 528093 , 596851 , 456518 , 523172 , 454709 , 461906 , 460612 , 521446 , 653325 , 560176 , 632579 , 584873 , 589048 , 621265 , 453313 );
Copy
4
3.11 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
400233
402141
421073
421151
421357
437598
446148
447315
453313
454709
455876
456518
459401
460612
461906
463773
466930
477361
491478
501179
508554
511536
514768
515604
518589
521446
522441
522604
523172
523814
524560
526420
527232
527243
528093
528149
529478
533289
533831
536903
544486
546015
552270
552984
560176
581720
581882
584873
589048
590079
593534
596851
600864
602607
605395
621265
625171
632579
653325
722846
787075
788994
791048
804104
810665
810933
815063
]
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 (400233 , 402141 , 421073 , 421151 , 421357 , 437598 , 446148 , 447315 , 453313 , 454709 , 455876 , 456518 , 459401 , 460612 , 461906 , 463773 , 466930 , 477361 , 491478 , 501179 , 508554 , 511536 , 514768 , 515604 , 518589 , 521446 , 522441 , 522604 , 523172 , 523814 , 524560 , 526420 , 527232 , 527243 , 528093 , 528149 , 529478 , 533289 , 533831 , 536903 , 544486 , 546015 , 552270 , 552984 , 560176 , 581720 , 581882 , 584873 , 589048 , 590079 , 593534 , 596851 , 600864 , 602607 , 605395 , 621265 , 625171 , 632579 , 653325 , 722846 , 787075 , 788994 , 791048 , 804104 , 810665 , 810933 , 815063 );
Copy
5
92.72 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
400233
402141
421073
421151
421357
437598
446148
447315
453313
454709
455876
456518
459401
460612
461906
463773
466930
477361
491478
501179
508554
511536
514768
515604
518589
521446
522441
522604
523172
523814
524560
526420
527232
527243
528093
528149
529478
533289
533831
536903
544486
546015
552270
552984
560176
581720
581882
584873
589048
590079
593534
596851
600864
602607
605395
621265
625171
632579
653325
722846
787075
788994
791048
804104
810665
810933
815063
]
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 (400233 , 402141 , 421073 , 421151 , 421357 , 437598 , 446148 , 447315 , 453313 , 454709 , 455876 , 456518 , 459401 , 460612 , 461906 , 463773 , 466930 , 477361 , 491478 , 501179 , 508554 , 511536 , 514768 , 515604 , 518589 , 521446 , 522441 , 522604 , 523172 , 523814 , 524560 , 526420 , 527232 , 527243 , 528093 , 528149 , 529478 , 533289 , 533831 , 536903 , 544486 , 546015 , 552270 , 552984 , 560176 , 581720 , 581882 , 584873 , 589048 , 590079 , 593534 , 596851 , 600864 , 602607 , 605395 , 621265 , 625171 , 632579 , 653325 , 722846 , 787075 , 788994 , 791048 , 804104 , 810665 , 810933 , 815063 );
Copy