3
8.70 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
556352
568501
630470
596919
771981
511268
431038
493256
511265
584860
583210
690526
603294
600492
758648
735614
801644
419991
511262
732491
431540
497455
511267
537531
489657
561426
595057
638761
812278
736706
765714
795396
547241
456630
818765
797027
604328
413044
783740
627609
429369
452781
428903
823818
428944
462821
567127
577544
554912
499044
645604
443498
555821
574243
619692
752700
568625
446505
462070
590066
615983
601194
443568
489106
440079
500594
]
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 (556352 , 568501 , 630470 , 596919 , 771981 , 511268 , 431038 , 493256 , 511265 , 584860 , 583210 , 690526 , 603294 , 600492 , 758648 , 735614 , 801644 , 419991 , 511262 , 732491 , 431540 , 497455 , 511267 , 537531 , 489657 , 561426 , 595057 , 638761 , 812278 , 736706 , 765714 , 795396 , 547241 , 456630 , 818765 , 797027 , 604328 , 413044 , 783740 , 627609 , 429369 , 452781 , 428903 , 823818 , 428944 , 462821 , 567127 , 577544 , 554912 , 499044 , 645604 , 443498 , 555821 , 574243 , 619692 , 752700 , 568625 , 446505 , 462070 , 590066 , 615983 , 601194 , 443568 , 489106 , 440079 , 500594 );
Copy
4
2.49 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
413044
419991
428903
428944
429369
431038
431540
440079
443498
443568
446505
452781
456630
462070
462821
489106
489657
493256
497455
499044
500594
511262
511265
511267
511268
537531
547241
554912
555821
556352
561426
567127
568501
568625
574243
577544
583210
584860
590066
595057
596919
600492
601194
603294
604328
615983
619692
627609
630470
638761
645604
690526
732491
735614
736706
752700
758648
765714
771981
783740
795396
797027
801644
812278
818765
823818
]
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 (413044 , 419991 , 428903 , 428944 , 429369 , 431038 , 431540 , 440079 , 443498 , 443568 , 446505 , 452781 , 456630 , 462070 , 462821 , 489106 , 489657 , 493256 , 497455 , 499044 , 500594 , 511262 , 511265 , 511267 , 511268 , 537531 , 547241 , 554912 , 555821 , 556352 , 561426 , 567127 , 568501 , 568625 , 574243 , 577544 , 583210 , 584860 , 590066 , 595057 , 596919 , 600492 , 601194 , 603294 , 604328 , 615983 , 619692 , 627609 , 630470 , 638761 , 645604 , 690526 , 732491 , 735614 , 736706 , 752700 , 758648 , 765714 , 771981 , 783740 , 795396 , 797027 , 801644 , 812278 , 818765 , 823818 );
Copy
5
72.14 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
413044
419991
428903
428944
429369
431038
431540
440079
443498
443568
446505
452781
456630
462070
462821
489106
489657
493256
497455
499044
500594
511262
511265
511267
511268
537531
547241
554912
555821
556352
561426
567127
568501
568625
574243
577544
583210
584860
590066
595057
596919
600492
601194
603294
604328
615983
619692
627609
630470
638761
645604
690526
732491
735614
736706
752700
758648
765714
771981
783740
795396
797027
801644
812278
818765
823818
]
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 (413044 , 419991 , 428903 , 428944 , 429369 , 431038 , 431540 , 440079 , 443498 , 443568 , 446505 , 452781 , 456630 , 462070 , 462821 , 489106 , 489657 , 493256 , 497455 , 499044 , 500594 , 511262 , 511265 , 511267 , 511268 , 537531 , 547241 , 554912 , 555821 , 556352 , 561426 , 567127 , 568501 , 568625 , 574243 , 577544 , 583210 , 584860 , 590066 , 595057 , 596919 , 600492 , 601194 , 603294 , 604328 , 615983 , 619692 , 627609 , 630470 , 638761 , 645604 , 690526 , 732491 , 735614 , 736706 , 752700 , 758648 , 765714 , 771981 , 783740 , 795396 , 797027 , 801644 , 812278 , 818765 , 823818 );
Copy