3
10.36 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
670634
546275
556203
624646
725689
725696
770362
780430
813282
448630
432661
467298
504933
452361
478408
480710
501192
578047
581136
581241
581238
646078
719851
578069
586233
630953
595549
764491
766744
773358
607079
467317
429791
499230
527224
498153
521100
418054
467742
512396
529126
509045
521652
550339
566105
580480
784528
787109
453180
457150
503699
485722
401273
452641
454323
455176
481372
510975
661989
565738
812597
485748
454316
454317
560804
601273
428761
448527
524915
]
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 (670634 , 546275 , 556203 , 624646 , 725689 , 725696 , 770362 , 780430 , 813282 , 448630 , 432661 , 467298 , 504933 , 452361 , 478408 , 480710 , 501192 , 578047 , 581136 , 581241 , 581238 , 646078 , 719851 , 578069 , 586233 , 630953 , 595549 , 764491 , 766744 , 773358 , 607079 , 467317 , 429791 , 499230 , 527224 , 498153 , 521100 , 418054 , 467742 , 512396 , 529126 , 509045 , 521652 , 550339 , 566105 , 580480 , 784528 , 787109 , 453180 , 457150 , 503699 , 485722 , 401273 , 452641 , 454323 , 455176 , 481372 , 510975 , 661989 , 565738 , 812597 , 485748 , 454316 , 454317 , 560804 , 601273 , 428761 , 448527 , 524915 );
Copy
4
2.12 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
401273
418054
428761
429791
432661
448527
448630
452361
452641
453180
454316
454317
454323
455176
457150
467298
467317
467742
478408
480710
481372
485722
485748
498153
499230
501192
503699
504933
509045
510975
512396
521100
521652
524915
527224
529126
546275
550339
556203
560804
565738
566105
578047
578069
580480
581136
581238
581241
586233
595549
601273
607079
624646
630953
646078
661989
670634
719851
725689
725696
764491
766744
770362
773358
780430
784528
787109
812597
813282
]
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 (401273 , 418054 , 428761 , 429791 , 432661 , 448527 , 448630 , 452361 , 452641 , 453180 , 454316 , 454317 , 454323 , 455176 , 457150 , 467298 , 467317 , 467742 , 478408 , 480710 , 481372 , 485722 , 485748 , 498153 , 499230 , 501192 , 503699 , 504933 , 509045 , 510975 , 512396 , 521100 , 521652 , 524915 , 527224 , 529126 , 546275 , 550339 , 556203 , 560804 , 565738 , 566105 , 578047 , 578069 , 580480 , 581136 , 581238 , 581241 , 586233 , 595549 , 601273 , 607079 , 624646 , 630953 , 646078 , 661989 , 670634 , 719851 , 725689 , 725696 , 764491 , 766744 , 770362 , 773358 , 780430 , 784528 , 787109 , 812597 , 813282 );
Copy
5
107.45 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
401273
418054
428761
429791
432661
448527
448630
452361
452641
453180
454316
454317
454323
455176
457150
467298
467317
467742
478408
480710
481372
485722
485748
498153
499230
501192
503699
504933
509045
510975
512396
521100
521652
524915
527224
529126
546275
550339
556203
560804
565738
566105
578047
578069
580480
581136
581238
581241
586233
595549
601273
607079
624646
630953
646078
661989
670634
719851
725689
725696
764491
766744
770362
773358
780430
784528
787109
812597
813282
]
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 (401273 , 418054 , 428761 , 429791 , 432661 , 448527 , 448630 , 452361 , 452641 , 453180 , 454316 , 454317 , 454323 , 455176 , 457150 , 467298 , 467317 , 467742 , 478408 , 480710 , 481372 , 485722 , 485748 , 498153 , 499230 , 501192 , 503699 , 504933 , 509045 , 510975 , 512396 , 521100 , 521652 , 524915 , 527224 , 529126 , 546275 , 550339 , 556203 , 560804 , 565738 , 566105 , 578047 , 578069 , 580480 , 581136 , 581238 , 581241 , 586233 , 595549 , 601273 , 607079 , 624646 , 630953 , 646078 , 661989 , 670634 , 719851 , 725689 , 725696 , 764491 , 766744 , 770362 , 773358 , 780430 , 784528 , 787109 , 812597 , 813282 );
Copy