3
8.09 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
541379
541419
556778
672158
541321
581353
671732
603214
538935
665751
719059
562857
672112
644381
603225
703521
542473
672159
711907
671714
612430
550010
650603
645233
649151
670108
669567
671740
671751
562844
644296
644922
644968
581274
563533
566329
543495
562840
649147
671749
671713
671741
671755
562848
644278
562842
562846
566695
545642
563534
677703
559133
562843
580258
649498
577374
580255
619468
621318
473242
509103
562841
663507
649106
592456
643731
598099
550233
556783
580257
]
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 (541379 , 541419 , 556778 , 672158 , 541321 , 581353 , 671732 , 603214 , 538935 , 665751 , 719059 , 562857 , 672112 , 644381 , 603225 , 703521 , 542473 , 672159 , 711907 , 671714 , 612430 , 550010 , 650603 , 645233 , 649151 , 670108 , 669567 , 671740 , 671751 , 562844 , 644296 , 644922 , 644968 , 581274 , 563533 , 566329 , 543495 , 562840 , 649147 , 671749 , 671713 , 671741 , 671755 , 562848 , 644278 , 562842 , 562846 , 566695 , 545642 , 563534 , 677703 , 559133 , 562843 , 580258 , 649498 , 577374 , 580255 , 619468 , 621318 , 473242 , 509103 , 562841 , 663507 , 649106 , 592456 , 643731 , 598099 , 550233 , 556783 , 580257 );
Copy
4
2.55 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
473242
509103
538935
541321
541379
541419
542473
543495
545642
550010
550233
556778
556783
559133
562840
562841
562842
562843
562844
562846
562848
562857
563533
563534
566329
566695
577374
580255
580257
580258
581274
581353
592456
598099
603214
603225
612430
619468
621318
643731
644278
644296
644381
644922
644968
645233
649106
649147
649151
649498
650603
663507
665751
669567
670108
671713
671714
671732
671740
671741
671749
671751
671755
672112
672158
672159
677703
703521
711907
719059
]
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 (473242 , 509103 , 538935 , 541321 , 541379 , 541419 , 542473 , 543495 , 545642 , 550010 , 550233 , 556778 , 556783 , 559133 , 562840 , 562841 , 562842 , 562843 , 562844 , 562846 , 562848 , 562857 , 563533 , 563534 , 566329 , 566695 , 577374 , 580255 , 580257 , 580258 , 581274 , 581353 , 592456 , 598099 , 603214 , 603225 , 612430 , 619468 , 621318 , 643731 , 644278 , 644296 , 644381 , 644922 , 644968 , 645233 , 649106 , 649147 , 649151 , 649498 , 650603 , 663507 , 665751 , 669567 , 670108 , 671713 , 671714 , 671732 , 671740 , 671741 , 671749 , 671751 , 671755 , 672112 , 672158 , 672159 , 677703 , 703521 , 711907 , 719059 );
Copy
5
88.55 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
473242
509103
538935
541321
541379
541419
542473
543495
545642
550010
550233
556778
556783
559133
562840
562841
562842
562843
562844
562846
562848
562857
563533
563534
566329
566695
577374
580255
580257
580258
581274
581353
592456
598099
603214
603225
612430
619468
621318
643731
644278
644296
644381
644922
644968
645233
649106
649147
649151
649498
650603
663507
665751
669567
670108
671713
671714
671732
671740
671741
671749
671751
671755
672112
672158
672159
677703
703521
711907
719059
]
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 (473242 , 509103 , 538935 , 541321 , 541379 , 541419 , 542473 , 543495 , 545642 , 550010 , 550233 , 556778 , 556783 , 559133 , 562840 , 562841 , 562842 , 562843 , 562844 , 562846 , 562848 , 562857 , 563533 , 563534 , 566329 , 566695 , 577374 , 580255 , 580257 , 580258 , 581274 , 581353 , 592456 , 598099 , 603214 , 603225 , 612430 , 619468 , 621318 , 643731 , 644278 , 644296 , 644381 , 644922 , 644968 , 645233 , 649106 , 649147 , 649151 , 649498 , 650603 , 663507 , 665751 , 669567 , 670108 , 671713 , 671714 , 671732 , 671740 , 671741 , 671749 , 671751 , 671755 , 672112 , 672158 , 672159 , 677703 , 703521 , 711907 , 719059 );
Copy