4
11.61 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
787250
644953
719159
753035
556005
809248
813959
598632
643919
429788
472819
756231
524654
647621
502786
534786
504454
565058
636461
526955
566692
720258
592477
595068
512244
536281
480786
575441
625444
600054
825379
817515
823117
731409
822633
821283
822620
801086
403543
172688
822999
801053
804146
91570
822930
822154
635748
381888
698031
699824
402034
413984
403458
820331
524289
500898
560615
552671
817865
524331
524291
575080
575753
574865
387121
815170
453755
524327
576356
567096
497096
576061
467997
576019
603850
535013
]
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 (787250 , 644953 , 719159 , 753035 , 556005 , 809248 , 813959 , 598632 , 643919 , 429788 , 472819 , 756231 , 524654 , 647621 , 502786 , 534786 , 504454 , 565058 , 636461 , 526955 , 566692 , 720258 , 592477 , 595068 , 512244 , 536281 , 480786 , 575441 , 625444 , 600054 , 825379 , 817515 , 823117 , 731409 , 822633 , 821283 , 822620 , 801086 , 403543 , 172688 , 822999 , 801053 , 804146 , 91570 , 822930 , 822154 , 635748 , 381888 , 698031 , 699824 , 402034 , 413984 , 403458 , 820331 , 524289 , 500898 , 560615 , 552671 , 817865 , 524331 , 524291 , 575080 , 575753 , 574865 , 387121 , 815170 , 453755 , 524327 , 576356 , 567096 , 497096 , 576061 , 467997 , 576019 , 603850 , 535013 );
Copy
5
2.58 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
91570
172688
381888
387121
402034
403458
403543
413984
429788
453755
467997
472819
480786
497096
500898
502786
504454
512244
524289
524291
524327
524331
524654
526955
534786
535013
536281
552671
556005
560615
565058
566692
567096
574865
575080
575441
575753
576019
576061
576356
592477
595068
598632
600054
603850
625444
635748
636461
643919
644953
647621
698031
699824
719159
720258
731409
753035
756231
787250
801053
801086
804146
809248
813959
815170
817515
817865
820331
821283
822154
822620
822633
822930
822999
825379
]
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 (91570 , 172688 , 381888 , 387121 , 402034 , 403458 , 403543 , 413984 , 429788 , 453755 , 467997 , 472819 , 480786 , 497096 , 500898 , 502786 , 504454 , 512244 , 524289 , 524291 , 524327 , 524331 , 524654 , 526955 , 534786 , 535013 , 536281 , 552671 , 556005 , 560615 , 565058 , 566692 , 567096 , 574865 , 575080 , 575441 , 575753 , 576019 , 576061 , 576356 , 592477 , 595068 , 598632 , 600054 , 603850 , 625444 , 635748 , 636461 , 643919 , 644953 , 647621 , 698031 , 699824 , 719159 , 720258 , 731409 , 753035 , 756231 , 787250 , 801053 , 801086 , 804146 , 809248 , 813959 , 815170 , 817515 , 817865 , 820331 , 821283 , 822154 , 822620 , 822633 , 822930 , 822999 , 825379 );
Copy
6
83.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
91570
172688
381888
387121
402034
403458
403543
413984
429788
453755
467997
472819
480786
497096
500898
502786
504454
512244
524289
524291
524327
524331
524654
526955
534786
535013
536281
552671
556005
560615
565058
566692
567096
574865
575080
575441
575753
576019
576061
576356
592477
595068
598632
600054
603850
625444
635748
636461
643919
644953
647621
698031
699824
719159
720258
731409
753035
756231
787250
801053
801086
804146
809248
813959
815170
817515
817865
820331
821283
822154
822620
822633
822930
822999
825379
]
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 (91570 , 172688 , 381888 , 387121 , 402034 , 403458 , 403543 , 413984 , 429788 , 453755 , 467997 , 472819 , 480786 , 497096 , 500898 , 502786 , 504454 , 512244 , 524289 , 524291 , 524327 , 524331 , 524654 , 526955 , 534786 , 535013 , 536281 , 552671 , 556005 , 560615 , 565058 , 566692 , 567096 , 574865 , 575080 , 575441 , 575753 , 576019 , 576061 , 576356 , 592477 , 595068 , 598632 , 600054 , 603850 , 625444 , 635748 , 636461 , 643919 , 644953 , 647621 , 698031 , 699824 , 719159 , 720258 , 731409 , 753035 , 756231 , 787250 , 801053 , 801086 , 804146 , 809248 , 813959 , 815170 , 817515 , 817865 , 820331 , 821283 , 822154 , 822620 , 822633 , 822930 , 822999 , 825379 );
Copy