3
10.65 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
556879
415329
410227
750495
232048
800310
346126
698161
387996
724971
396130
699809
402630
429138
648469
722370
722390
741246
793188
741549
713137
778721
493342
522273
459331
514150
669072
386659
452792
486068
443238
557343
556889
742304
480814
479177
414269
511855
548581
700799
619832
618276
470838
528142
569992
735132
465399
473740
457293
467459
583387
605745
630187
470458
453601
722373
590439
599471
601881
586713
636268
624215
469198
]
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 (556879 , 415329 , 410227 , 750495 , 232048 , 800310 , 346126 , 698161 , 387996 , 724971 , 396130 , 699809 , 402630 , 429138 , 648469 , 722370 , 722390 , 741246 , 793188 , 741549 , 713137 , 778721 , 493342 , 522273 , 459331 , 514150 , 669072 , 386659 , 452792 , 486068 , 443238 , 557343 , 556889 , 742304 , 480814 , 479177 , 414269 , 511855 , 548581 , 700799 , 619832 , 618276 , 470838 , 528142 , 569992 , 735132 , 465399 , 473740 , 457293 , 467459 , 583387 , 605745 , 630187 , 470458 , 453601 , 722373 , 590439 , 599471 , 601881 , 586713 , 636268 , 624215 , 469198 );
Copy
4
2.78 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
232048
346126
386659
387996
396130
402630
410227
414269
415329
429138
443238
452792
453601
457293
459331
465399
467459
469198
470458
470838
473740
479177
480814
486068
493342
511855
514150
522273
528142
548581
556879
556889
557343
569992
583387
586713
590439
599471
601881
605745
618276
619832
624215
630187
636268
648469
669072
698161
699809
700799
713137
722370
722373
722390
724971
735132
741246
741549
742304
750495
778721
793188
800310
]
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 (232048 , 346126 , 386659 , 387996 , 396130 , 402630 , 410227 , 414269 , 415329 , 429138 , 443238 , 452792 , 453601 , 457293 , 459331 , 465399 , 467459 , 469198 , 470458 , 470838 , 473740 , 479177 , 480814 , 486068 , 493342 , 511855 , 514150 , 522273 , 528142 , 548581 , 556879 , 556889 , 557343 , 569992 , 583387 , 586713 , 590439 , 599471 , 601881 , 605745 , 618276 , 619832 , 624215 , 630187 , 636268 , 648469 , 669072 , 698161 , 699809 , 700799 , 713137 , 722370 , 722373 , 722390 , 724971 , 735132 , 741246 , 741549 , 742304 , 750495 , 778721 , 793188 , 800310 );
Copy
5
92.39 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
232048
346126
386659
387996
396130
402630
410227
414269
415329
429138
443238
452792
453601
457293
459331
465399
467459
469198
470458
470838
473740
479177
480814
486068
493342
511855
514150
522273
528142
548581
556879
556889
557343
569992
583387
586713
590439
599471
601881
605745
618276
619832
624215
630187
636268
648469
669072
698161
699809
700799
713137
722370
722373
722390
724971
735132
741246
741549
742304
750495
778721
793188
800310
]
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 (232048 , 346126 , 386659 , 387996 , 396130 , 402630 , 410227 , 414269 , 415329 , 429138 , 443238 , 452792 , 453601 , 457293 , 459331 , 465399 , 467459 , 469198 , 470458 , 470838 , 473740 , 479177 , 480814 , 486068 , 493342 , 511855 , 514150 , 522273 , 528142 , 548581 , 556879 , 556889 , 557343 , 569992 , 583387 , 586713 , 590439 , 599471 , 601881 , 605745 , 618276 , 619832 , 624215 , 630187 , 636268 , 648469 , 669072 , 698161 , 699809 , 700799 , 713137 , 722370 , 722373 , 722390 , 724971 , 735132 , 741246 , 741549 , 742304 , 750495 , 778721 , 793188 , 800310 );
Copy