3
13.31 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
390205
443801
479073
522792
486312
522526
393789
370755
452445
510557
531489
576364
556687
557503
563217
679121
682222
591123
598906
758585
145502
384801
451482
418418
491409
512529
396975
429571
477362
519978
519240
567329
541942
650778
671128
593743
702061
506259
506816
531468
675374
681584
607293
623817
597867
467162
437548
571028
543518
563218
519931
591954
622253
424746
561704
573640
595795
597542
621988
658421
576310
424837
431262
]
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 (390205 , 443801 , 479073 , 522792 , 486312 , 522526 , 393789 , 370755 , 452445 , 510557 , 531489 , 576364 , 556687 , 557503 , 563217 , 679121 , 682222 , 591123 , 598906 , 758585 , 145502 , 384801 , 451482 , 418418 , 491409 , 512529 , 396975 , 429571 , 477362 , 519978 , 519240 , 567329 , 541942 , 650778 , 671128 , 593743 , 702061 , 506259 , 506816 , 531468 , 675374 , 681584 , 607293 , 623817 , 597867 , 467162 , 437548 , 571028 , 543518 , 563218 , 519931 , 591954 , 622253 , 424746 , 561704 , 573640 , 595795 , 597542 , 621988 , 658421 , 576310 , 424837 , 431262 );
Copy
4
2.63 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
145502
370755
384801
390205
393789
396975
418418
424746
424837
429571
431262
437548
443801
451482
452445
467162
477362
479073
486312
491409
506259
506816
510557
512529
519240
519931
519978
522526
522792
531468
531489
541942
543518
556687
557503
561704
563217
563218
567329
571028
573640
576310
576364
591123
591954
593743
595795
597542
597867
598906
607293
621988
622253
623817
650778
658421
671128
675374
679121
681584
682222
702061
758585
]
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 (145502 , 370755 , 384801 , 390205 , 393789 , 396975 , 418418 , 424746 , 424837 , 429571 , 431262 , 437548 , 443801 , 451482 , 452445 , 467162 , 477362 , 479073 , 486312 , 491409 , 506259 , 506816 , 510557 , 512529 , 519240 , 519931 , 519978 , 522526 , 522792 , 531468 , 531489 , 541942 , 543518 , 556687 , 557503 , 561704 , 563217 , 563218 , 567329 , 571028 , 573640 , 576310 , 576364 , 591123 , 591954 , 593743 , 595795 , 597542 , 597867 , 598906 , 607293 , 621988 , 622253 , 623817 , 650778 , 658421 , 671128 , 675374 , 679121 , 681584 , 682222 , 702061 , 758585 );
Copy
5
74.98 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
145502
370755
384801
390205
393789
396975
418418
424746
424837
429571
431262
437548
443801
451482
452445
467162
477362
479073
486312
491409
506259
506816
510557
512529
519240
519931
519978
522526
522792
531468
531489
541942
543518
556687
557503
561704
563217
563218
567329
571028
573640
576310
576364
591123
591954
593743
595795
597542
597867
598906
607293
621988
622253
623817
650778
658421
671128
675374
679121
681584
682222
702061
758585
]
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 (145502 , 370755 , 384801 , 390205 , 393789 , 396975 , 418418 , 424746 , 424837 , 429571 , 431262 , 437548 , 443801 , 451482 , 452445 , 467162 , 477362 , 479073 , 486312 , 491409 , 506259 , 506816 , 510557 , 512529 , 519240 , 519931 , 519978 , 522526 , 522792 , 531468 , 531489 , 541942 , 543518 , 556687 , 557503 , 561704 , 563217 , 563218 , 567329 , 571028 , 573640 , 576310 , 576364 , 591123 , 591954 , 593743 , 595795 , 597542 , 597867 , 598906 , 607293 , 621988 , 622253 , 623817 , 650778 , 658421 , 671128 , 675374 , 679121 , 681584 , 682222 , 702061 , 758585 );
Copy