4
11.85 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
810416
683878
556418
551962
386738
590949
515884
771601
576496
623528
559856
767287
755696
387647
512215
767285
767283
762296
397867
446499
648794
619441
622656
586623
551991
478025
420211
512224
619445
623510
766626
543919
446855
622645
766607
619451
532941
596856
785568
636288
397678
616025
420231
446882
618483
539232
397045
420252
478030
457259
554298
554416
614730
420216
737127
523373
505804
521249
588228
446476
590695
526100
590967
408601
623183
422582
424328
619439
413044
515968
]
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 (810416 , 683878 , 556418 , 551962 , 386738 , 590949 , 515884 , 771601 , 576496 , 623528 , 559856 , 767287 , 755696 , 387647 , 512215 , 767285 , 767283 , 762296 , 397867 , 446499 , 648794 , 619441 , 622656 , 586623 , 551991 , 478025 , 420211 , 512224 , 619445 , 623510 , 766626 , 543919 , 446855 , 622645 , 766607 , 619451 , 532941 , 596856 , 785568 , 636288 , 397678 , 616025 , 420231 , 446882 , 618483 , 539232 , 397045 , 420252 , 478030 , 457259 , 554298 , 554416 , 614730 , 420216 , 737127 , 523373 , 505804 , 521249 , 588228 , 446476 , 590695 , 526100 , 590967 , 408601 , 623183 , 422582 , 424328 , 619439 , 413044 , 515968 );
Copy
5
2.35 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
386738
387647
397045
397678
397867
408601
413044
420211
420216
420231
420252
422582
424328
446476
446499
446855
446882
457259
478025
478030
505804
512215
512224
515884
515968
521249
523373
526100
532941
539232
543919
551962
551991
554298
554416
556418
559856
576496
586623
588228
590695
590949
590967
596856
614730
616025
618483
619439
619441
619445
619451
622645
622656
623183
623510
623528
636288
648794
683878
737127
755696
762296
766607
766626
767283
767285
767287
771601
785568
810416
]
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 (386738 , 387647 , 397045 , 397678 , 397867 , 408601 , 413044 , 420211 , 420216 , 420231 , 420252 , 422582 , 424328 , 446476 , 446499 , 446855 , 446882 , 457259 , 478025 , 478030 , 505804 , 512215 , 512224 , 515884 , 515968 , 521249 , 523373 , 526100 , 532941 , 539232 , 543919 , 551962 , 551991 , 554298 , 554416 , 556418 , 559856 , 576496 , 586623 , 588228 , 590695 , 590949 , 590967 , 596856 , 614730 , 616025 , 618483 , 619439 , 619441 , 619445 , 619451 , 622645 , 622656 , 623183 , 623510 , 623528 , 636288 , 648794 , 683878 , 737127 , 755696 , 762296 , 766607 , 766626 , 767283 , 767285 , 767287 , 771601 , 785568 , 810416 );
Copy
6
147.61 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
386738
387647
397045
397678
397867
408601
413044
420211
420216
420231
420252
422582
424328
446476
446499
446855
446882
457259
478025
478030
505804
512215
512224
515884
515968
521249
523373
526100
532941
539232
543919
551962
551991
554298
554416
556418
559856
576496
586623
588228
590695
590949
590967
596856
614730
616025
618483
619439
619441
619445
619451
622645
622656
623183
623510
623528
636288
648794
683878
737127
755696
762296
766607
766626
767283
767285
767287
771601
785568
810416
]
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 (386738 , 387647 , 397045 , 397678 , 397867 , 408601 , 413044 , 420211 , 420216 , 420231 , 420252 , 422582 , 424328 , 446476 , 446499 , 446855 , 446882 , 457259 , 478025 , 478030 , 505804 , 512215 , 512224 , 515884 , 515968 , 521249 , 523373 , 526100 , 532941 , 539232 , 543919 , 551962 , 551991 , 554298 , 554416 , 556418 , 559856 , 576496 , 586623 , 588228 , 590695 , 590949 , 590967 , 596856 , 614730 , 616025 , 618483 , 619439 , 619441 , 619445 , 619451 , 622645 , 622656 , 623183 , 623510 , 623528 , 636288 , 648794 , 683878 , 737127 , 755696 , 762296 , 766607 , 766626 , 767283 , 767285 , 767287 , 771601 , 785568 , 810416 );
Copy