3
12.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
624905
626066
637245
644268
602933
610931
641414
805945
810665
788994
722846
421073
455876
518201
511536
518589
529478
525360
400233
815063
477361
533831
526420
528149
552270
602607
810933
791048
437598
402141
421357
522441
446148
463773
533289
527243
523814
546015
581882
593534
605395
447315
524560
527232
491478
514768
520627
522604
536903
552984
566761
581720
421151
508554
528093
456518
523172
454709
461906
460612
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 (624905 , 626066 , 637245 , 644268 , 602933 , 610931 , 641414 , 805945 , 810665 , 788994 , 722846 , 421073 , 455876 , 518201 , 511536 , 518589 , 529478 , 525360 , 400233 , 815063 , 477361 , 533831 , 526420 , 528149 , 552270 , 602607 , 810933 , 791048 , 437598 , 402141 , 421357 , 522441 , 446148 , 463773 , 533289 , 527243 , 523814 , 546015 , 581882 , 593534 , 605395 , 447315 , 524560 , 527232 , 491478 , 514768 , 520627 , 522604 , 536903 , 552984 , 566761 , 581720 , 421151 , 508554 , 528093 , 456518 , 523172 , 454709 , 461906 , 460612 , 653325 , 560176 , 632579 , 584873 , 589048 , 621265 , 453313 );
Copy
4
2.97 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
460612
461906
463773
477361
491478
508554
511536
514768
518201
518589
520627
522441
522604
523172
523814
524560
525360
526420
527232
527243
528093
528149
529478
533289
533831
536903
546015
552270
552984
560176
566761
581720
581882
584873
589048
593534
602607
602933
605395
610931
621265
624905
626066
632579
637245
641414
644268
653325
722846
788994
791048
805945
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 , 460612 , 461906 , 463773 , 477361 , 491478 , 508554 , 511536 , 514768 , 518201 , 518589 , 520627 , 522441 , 522604 , 523172 , 523814 , 524560 , 525360 , 526420 , 527232 , 527243 , 528093 , 528149 , 529478 , 533289 , 533831 , 536903 , 546015 , 552270 , 552984 , 560176 , 566761 , 581720 , 581882 , 584873 , 589048 , 593534 , 602607 , 602933 , 605395 , 610931 , 621265 , 624905 , 626066 , 632579 , 637245 , 641414 , 644268 , 653325 , 722846 , 788994 , 791048 , 805945 , 810665 , 810933 , 815063 );
Copy
5
103.32 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
460612
461906
463773
477361
491478
508554
511536
514768
518201
518589
520627
522441
522604
523172
523814
524560
525360
526420
527232
527243
528093
528149
529478
533289
533831
536903
546015
552270
552984
560176
566761
581720
581882
584873
589048
593534
602607
602933
605395
610931
621265
624905
626066
632579
637245
641414
644268
653325
722846
788994
791048
805945
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 , 460612 , 461906 , 463773 , 477361 , 491478 , 508554 , 511536 , 514768 , 518201 , 518589 , 520627 , 522441 , 522604 , 523172 , 523814 , 524560 , 525360 , 526420 , 527232 , 527243 , 528093 , 528149 , 529478 , 533289 , 533831 , 536903 , 546015 , 552270 , 552984 , 560176 , 566761 , 581720 , 581882 , 584873 , 589048 , 593534 , 602607 , 602933 , 605395 , 610931 , 621265 , 624905 , 626066 , 632579 , 637245 , 641414 , 644268 , 653325 , 722846 , 788994 , 791048 , 805945 , 810665 , 810933 , 815063 );
Copy