3
11.67 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
742687
464389
535450
801362
428804
435931
561594
593865
603678
703439
801493
820113
743738
785180
773814
723107
818602
716915
593805
782503
798763
716921
775271
730904
743429
726390
769550
772444
711341
775274
696567
602707
755695
743463
736517
746497
697943
515751
382610
439569
532130
716936
689002
608415
775270
788158
723955
724045
727891
742839
772446
724456
743431
744563
769536
723945
753148
699604
440864
447259
467675
531919
584765
697909
753205
769490
763845
453740
610587
726533
427113
463625
565983
591198
599368
]
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 (742687 , 464389 , 535450 , 801362 , 428804 , 435931 , 561594 , 593865 , 603678 , 703439 , 801493 , 820113 , 743738 , 785180 , 773814 , 723107 , 818602 , 716915 , 593805 , 782503 , 798763 , 716921 , 775271 , 730904 , 743429 , 726390 , 769550 , 772444 , 711341 , 775274 , 696567 , 602707 , 755695 , 743463 , 736517 , 746497 , 697943 , 515751 , 382610 , 439569 , 532130 , 716936 , 689002 , 608415 , 775270 , 788158 , 723955 , 724045 , 727891 , 742839 , 772446 , 724456 , 743431 , 744563 , 769536 , 723945 , 753148 , 699604 , 440864 , 447259 , 467675 , 531919 , 584765 , 697909 , 753205 , 769490 , 763845 , 453740 , 610587 , 726533 , 427113 , 463625 , 565983 , 591198 , 599368 );
Copy
4
5.56 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
382610
427113
428804
435931
439569
440864
447259
453740
463625
464389
467675
515751
531919
532130
535450
561594
565983
584765
591198
593805
593865
599368
602707
603678
608415
610587
689002
696567
697909
699604
703439
711341
716915
716921
723945
723955
724045
724456
726390
726533
727891
730904
742687
742839
743429
743431
743463
743738
744563
746497
753148
753205
755695
763845
769490
769536
769550
772444
772446
773814
775270
775271
775274
782503
785180
788158
798763
801362
801493
818602
820113
]
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 (382610 , 427113 , 428804 , 435931 , 439569 , 440864 , 447259 , 453740 , 463625 , 464389 , 467675 , 515751 , 531919 , 532130 , 535450 , 561594 , 565983 , 584765 , 591198 , 593805 , 593865 , 599368 , 602707 , 603678 , 608415 , 610587 , 689002 , 696567 , 697909 , 699604 , 703439 , 711341 , 716915 , 716921 , 723945 , 723955 , 724045 , 724456 , 726390 , 726533 , 727891 , 730904 , 742687 , 742839 , 743429 , 743431 , 743463 , 743738 , 744563 , 746497 , 753148 , 753205 , 755695 , 763845 , 769490 , 769536 , 769550 , 772444 , 772446 , 773814 , 775270 , 775271 , 775274 , 782503 , 785180 , 788158 , 798763 , 801362 , 801493 , 818602 , 820113 );
Copy
5
128.29 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
382610
427113
428804
435931
439569
440864
447259
453740
463625
464389
467675
515751
531919
532130
535450
561594
565983
584765
591198
593805
593865
599368
602707
603678
608415
610587
689002
696567
697909
699604
703439
711341
716915
716921
723945
723955
724045
724456
726390
726533
727891
730904
742687
742839
743429
743431
743463
743738
744563
746497
753148
753205
755695
763845
769490
769536
769550
772444
772446
773814
775270
775271
775274
782503
785180
788158
798763
801362
801493
818602
820113
]
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 (382610 , 427113 , 428804 , 435931 , 439569 , 440864 , 447259 , 453740 , 463625 , 464389 , 467675 , 515751 , 531919 , 532130 , 535450 , 561594 , 565983 , 584765 , 591198 , 593805 , 593865 , 599368 , 602707 , 603678 , 608415 , 610587 , 689002 , 696567 , 697909 , 699604 , 703439 , 711341 , 716915 , 716921 , 723945 , 723955 , 724045 , 724456 , 726390 , 726533 , 727891 , 730904 , 742687 , 742839 , 743429 , 743431 , 743463 , 743738 , 744563 , 746497 , 753148 , 753205 , 755695 , 763845 , 769490 , 769536 , 769550 , 772444 , 772446 , 773814 , 775270 , 775271 , 775274 , 782503 , 785180 , 788158 , 798763 , 801362 , 801493 , 818602 , 820113 );
Copy