3
9.77 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
823893
826219
746917
782600
598131
615960
742102
779398
627901
721374
514662
557051
685736
610019
621718
714598
584792
757104
339392
798161
598091
721580
456077
703439
554616
458045
758564
769522
482274
601401
625442
442928
813091
460894
689084
449756
587915
802182
517003
471133
500462
434181
434459
516454
511331
456623
792817
524543
616673
591387
575704
562922
583283
506226
757906
620074
514097
522101
519169
571823
488379
557599
436314
624502
489958
]
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 (823893 , 826219 , 746917 , 782600 , 598131 , 615960 , 742102 , 779398 , 627901 , 721374 , 514662 , 557051 , 685736 , 610019 , 621718 , 714598 , 584792 , 757104 , 339392 , 798161 , 598091 , 721580 , 456077 , 703439 , 554616 , 458045 , 758564 , 769522 , 482274 , 601401 , 625442 , 442928 , 813091 , 460894 , 689084 , 449756 , 587915 , 802182 , 517003 , 471133 , 500462 , 434181 , 434459 , 516454 , 511331 , 456623 , 792817 , 524543 , 616673 , 591387 , 575704 , 562922 , 583283 , 506226 , 757906 , 620074 , 514097 , 522101 , 519169 , 571823 , 488379 , 557599 , 436314 , 624502 , 489958 );
Copy
4
2.18 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
339392
434181
434459
436314
442928
449756
456077
456623
458045
460894
471133
482274
488379
489958
500462
506226
511331
514097
514662
516454
517003
519169
522101
524543
554616
557051
557599
562922
571823
575704
583283
584792
587915
591387
598091
598131
601401
610019
615960
616673
620074
621718
624502
625442
627901
685736
689084
703439
714598
721374
721580
742102
746917
757104
757906
758564
769522
779398
782600
792817
798161
802182
813091
823893
826219
]
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 (339392 , 434181 , 434459 , 436314 , 442928 , 449756 , 456077 , 456623 , 458045 , 460894 , 471133 , 482274 , 488379 , 489958 , 500462 , 506226 , 511331 , 514097 , 514662 , 516454 , 517003 , 519169 , 522101 , 524543 , 554616 , 557051 , 557599 , 562922 , 571823 , 575704 , 583283 , 584792 , 587915 , 591387 , 598091 , 598131 , 601401 , 610019 , 615960 , 616673 , 620074 , 621718 , 624502 , 625442 , 627901 , 685736 , 689084 , 703439 , 714598 , 721374 , 721580 , 742102 , 746917 , 757104 , 757906 , 758564 , 769522 , 779398 , 782600 , 792817 , 798161 , 802182 , 813091 , 823893 , 826219 );
Copy
5
117.57 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
339392
434181
434459
436314
442928
449756
456077
456623
458045
460894
471133
482274
488379
489958
500462
506226
511331
514097
514662
516454
517003
519169
522101
524543
554616
557051
557599
562922
571823
575704
583283
584792
587915
591387
598091
598131
601401
610019
615960
616673
620074
621718
624502
625442
627901
685736
689084
703439
714598
721374
721580
742102
746917
757104
757906
758564
769522
779398
782600
792817
798161
802182
813091
823893
826219
]
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 (339392 , 434181 , 434459 , 436314 , 442928 , 449756 , 456077 , 456623 , 458045 , 460894 , 471133 , 482274 , 488379 , 489958 , 500462 , 506226 , 511331 , 514097 , 514662 , 516454 , 517003 , 519169 , 522101 , 524543 , 554616 , 557051 , 557599 , 562922 , 571823 , 575704 , 583283 , 584792 , 587915 , 591387 , 598091 , 598131 , 601401 , 610019 , 615960 , 616673 , 620074 , 621718 , 624502 , 625442 , 627901 , 685736 , 689084 , 703439 , 714598 , 721374 , 721580 , 742102 , 746917 , 757104 , 757906 , 758564 , 769522 , 779398 , 782600 , 792817 , 798161 , 802182 , 813091 , 823893 , 826219 );
Copy