3
11.72 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
705198
818097
741865
530293
734281
741144
696303
761279
792918
824764
793619
726057
626413
783955
819915
784844
743081
737948
448078
739417
819874
759693
727502
607650
615380
703678
785478
814102
650036
712185
624267
455007
487621
805900
809864
810302
766500
796678
501980
519099
696888
751111
761537
615147
499438
537475
560872
735910
447027
505372
465001
464905
662104
598567
613530
586549
615009
477785
451654
492708
503488
513404
483486
588200
585717
623617
519905
519907
623818
623616
]
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 (705198 , 818097 , 741865 , 530293 , 734281 , 741144 , 696303 , 761279 , 792918 , 824764 , 793619 , 726057 , 626413 , 783955 , 819915 , 784844 , 743081 , 737948 , 448078 , 739417 , 819874 , 759693 , 727502 , 607650 , 615380 , 703678 , 785478 , 814102 , 650036 , 712185 , 624267 , 455007 , 487621 , 805900 , 809864 , 810302 , 766500 , 796678 , 501980 , 519099 , 696888 , 751111 , 761537 , 615147 , 499438 , 537475 , 560872 , 735910 , 447027 , 505372 , 465001 , 464905 , 662104 , 598567 , 613530 , 586549 , 615009 , 477785 , 451654 , 492708 , 503488 , 513404 , 483486 , 588200 , 585717 , 623617 , 519905 , 519907 , 623818 , 623616 );
Copy
4
3.45 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
447027
448078
451654
455007
464905
465001
477785
483486
487621
492708
499438
501980
503488
505372
513404
519099
519905
519907
530293
537475
560872
585717
586549
588200
598567
607650
613530
615009
615147
615380
623616
623617
623818
624267
626413
650036
662104
696303
696888
703678
705198
712185
726057
727502
734281
735910
737948
739417
741144
741865
743081
751111
759693
761279
761537
766500
783955
784844
785478
792918
793619
796678
805900
809864
810302
814102
818097
819874
819915
824764
]
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 (447027 , 448078 , 451654 , 455007 , 464905 , 465001 , 477785 , 483486 , 487621 , 492708 , 499438 , 501980 , 503488 , 505372 , 513404 , 519099 , 519905 , 519907 , 530293 , 537475 , 560872 , 585717 , 586549 , 588200 , 598567 , 607650 , 613530 , 615009 , 615147 , 615380 , 623616 , 623617 , 623818 , 624267 , 626413 , 650036 , 662104 , 696303 , 696888 , 703678 , 705198 , 712185 , 726057 , 727502 , 734281 , 735910 , 737948 , 739417 , 741144 , 741865 , 743081 , 751111 , 759693 , 761279 , 761537 , 766500 , 783955 , 784844 , 785478 , 792918 , 793619 , 796678 , 805900 , 809864 , 810302 , 814102 , 818097 , 819874 , 819915 , 824764 );
Copy
5
85.94 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
447027
448078
451654
455007
464905
465001
477785
483486
487621
492708
499438
501980
503488
505372
513404
519099
519905
519907
530293
537475
560872
585717
586549
588200
598567
607650
613530
615009
615147
615380
623616
623617
623818
624267
626413
650036
662104
696303
696888
703678
705198
712185
726057
727502
734281
735910
737948
739417
741144
741865
743081
751111
759693
761279
761537
766500
783955
784844
785478
792918
793619
796678
805900
809864
810302
814102
818097
819874
819915
824764
]
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 (447027 , 448078 , 451654 , 455007 , 464905 , 465001 , 477785 , 483486 , 487621 , 492708 , 499438 , 501980 , 503488 , 505372 , 513404 , 519099 , 519905 , 519907 , 530293 , 537475 , 560872 , 585717 , 586549 , 588200 , 598567 , 607650 , 613530 , 615009 , 615147 , 615380 , 623616 , 623617 , 623818 , 624267 , 626413 , 650036 , 662104 , 696303 , 696888 , 703678 , 705198 , 712185 , 726057 , 727502 , 734281 , 735910 , 737948 , 739417 , 741144 , 741865 , 743081 , 751111 , 759693 , 761279 , 761537 , 766500 , 783955 , 784844 , 785478 , 792918 , 793619 , 796678 , 805900 , 809864 , 810302 , 814102 , 818097 , 819874 , 819915 , 824764 );
Copy