3
8.63 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
588840
714122
695467
639501
728431
728716
714062
679638
532244
761574
568558
685478
604337
768955
800515
663164
687801
718146
608125
799786
808819
784713
726179
765683
662217
767107
727575
715012
578298
725200
662220
784716
662052
682496
799949
709781
647856
772684
756088
709854
662016
588146
645273
532000
619397
805504
770270
743706
636070
814119
519436
533522
803524
643013
490567
790843
623135
464848
564531
613683
619398
614691
639155
524496
]
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 (588840 , 714122 , 695467 , 639501 , 728431 , 728716 , 714062 , 679638 , 532244 , 761574 , 568558 , 685478 , 604337 , 768955 , 800515 , 663164 , 687801 , 718146 , 608125 , 799786 , 808819 , 784713 , 726179 , 765683 , 662217 , 767107 , 727575 , 715012 , 578298 , 725200 , 662220 , 784716 , 662052 , 682496 , 799949 , 709781 , 647856 , 772684 , 756088 , 709854 , 662016 , 588146 , 645273 , 532000 , 619397 , 805504 , 770270 , 743706 , 636070 , 814119 , 519436 , 533522 , 803524 , 643013 , 490567 , 790843 , 623135 , 464848 , 564531 , 613683 , 619398 , 614691 , 639155 , 524496 );
Copy
4
2.49 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
464848
490567
519436
524496
532000
532244
533522
564531
568558
578298
588146
588840
604337
608125
613683
614691
619397
619398
623135
636070
639155
639501
643013
645273
647856
662016
662052
662217
662220
663164
679638
682496
685478
687801
695467
709781
709854
714062
714122
715012
718146
725200
726179
727575
728431
728716
743706
756088
761574
765683
767107
768955
770270
772684
784713
784716
790843
799786
799949
800515
803524
805504
808819
814119
]
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 (464848 , 490567 , 519436 , 524496 , 532000 , 532244 , 533522 , 564531 , 568558 , 578298 , 588146 , 588840 , 604337 , 608125 , 613683 , 614691 , 619397 , 619398 , 623135 , 636070 , 639155 , 639501 , 643013 , 645273 , 647856 , 662016 , 662052 , 662217 , 662220 , 663164 , 679638 , 682496 , 685478 , 687801 , 695467 , 709781 , 709854 , 714062 , 714122 , 715012 , 718146 , 725200 , 726179 , 727575 , 728431 , 728716 , 743706 , 756088 , 761574 , 765683 , 767107 , 768955 , 770270 , 772684 , 784713 , 784716 , 790843 , 799786 , 799949 , 800515 , 803524 , 805504 , 808819 , 814119 );
Copy
5
94.10 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
464848
490567
519436
524496
532000
532244
533522
564531
568558
578298
588146
588840
604337
608125
613683
614691
619397
619398
623135
636070
639155
639501
643013
645273
647856
662016
662052
662217
662220
663164
679638
682496
685478
687801
695467
709781
709854
714062
714122
715012
718146
725200
726179
727575
728431
728716
743706
756088
761574
765683
767107
768955
770270
772684
784713
784716
790843
799786
799949
800515
803524
805504
808819
814119
]
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 (464848 , 490567 , 519436 , 524496 , 532000 , 532244 , 533522 , 564531 , 568558 , 578298 , 588146 , 588840 , 604337 , 608125 , 613683 , 614691 , 619397 , 619398 , 623135 , 636070 , 639155 , 639501 , 643013 , 645273 , 647856 , 662016 , 662052 , 662217 , 662220 , 663164 , 679638 , 682496 , 685478 , 687801 , 695467 , 709781 , 709854 , 714062 , 714122 , 715012 , 718146 , 725200 , 726179 , 727575 , 728431 , 728716 , 743706 , 756088 , 761574 , 765683 , 767107 , 768955 , 770270 , 772684 , 784713 , 784716 , 790843 , 799786 , 799949 , 800515 , 803524 , 805504 , 808819 , 814119 );
Copy