3
7.81 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
740937
706667
781068
342024
646579
765229
807545
731875
775715
787153
708789
402735
397087
412307
605283
759602
386944
827282
720697
643452
414201
522970
373981
650263
685399
728225
791858
412706
443516
509605
554174
419281
479462
557749
679220
685404
580275
593987
790459
757974
790499
807262
749332
412756
490217
602007
813526
469171
456703
411459
813573
518137
577768
624897
619739
432719
513290
427601
575734
589795
428210
517330
435108
585951
604990
490508
]
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 (740937 , 706667 , 781068 , 342024 , 646579 , 765229 , 807545 , 731875 , 775715 , 787153 , 708789 , 402735 , 397087 , 412307 , 605283 , 759602 , 386944 , 827282 , 720697 , 643452 , 414201 , 522970 , 373981 , 650263 , 685399 , 728225 , 791858 , 412706 , 443516 , 509605 , 554174 , 419281 , 479462 , 557749 , 679220 , 685404 , 580275 , 593987 , 790459 , 757974 , 790499 , 807262 , 749332 , 412756 , 490217 , 602007 , 813526 , 469171 , 456703 , 411459 , 813573 , 518137 , 577768 , 624897 , 619739 , 432719 , 513290 , 427601 , 575734 , 589795 , 428210 , 517330 , 435108 , 585951 , 604990 , 490508 );
Copy
4
2.12 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
342024
373981
386944
397087
402735
411459
412307
412706
412756
414201
419281
427601
428210
432719
435108
443516
456703
469171
479462
490217
490508
509605
513290
517330
518137
522970
554174
557749
575734
577768
580275
585951
589795
593987
602007
604990
605283
619739
624897
643452
646579
650263
679220
685399
685404
706667
708789
720697
728225
731875
740937
749332
757974
759602
765229
775715
781068
787153
790459
790499
791858
807262
807545
813526
813573
827282
]
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 (342024 , 373981 , 386944 , 397087 , 402735 , 411459 , 412307 , 412706 , 412756 , 414201 , 419281 , 427601 , 428210 , 432719 , 435108 , 443516 , 456703 , 469171 , 479462 , 490217 , 490508 , 509605 , 513290 , 517330 , 518137 , 522970 , 554174 , 557749 , 575734 , 577768 , 580275 , 585951 , 589795 , 593987 , 602007 , 604990 , 605283 , 619739 , 624897 , 643452 , 646579 , 650263 , 679220 , 685399 , 685404 , 706667 , 708789 , 720697 , 728225 , 731875 , 740937 , 749332 , 757974 , 759602 , 765229 , 775715 , 781068 , 787153 , 790459 , 790499 , 791858 , 807262 , 807545 , 813526 , 813573 , 827282 );
Copy
5
90.57 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
342024
373981
386944
397087
402735
411459
412307
412706
412756
414201
419281
427601
428210
432719
435108
443516
456703
469171
479462
490217
490508
509605
513290
517330
518137
522970
554174
557749
575734
577768
580275
585951
589795
593987
602007
604990
605283
619739
624897
643452
646579
650263
679220
685399
685404
706667
708789
720697
728225
731875
740937
749332
757974
759602
765229
775715
781068
787153
790459
790499
791858
807262
807545
813526
813573
827282
]
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 (342024 , 373981 , 386944 , 397087 , 402735 , 411459 , 412307 , 412706 , 412756 , 414201 , 419281 , 427601 , 428210 , 432719 , 435108 , 443516 , 456703 , 469171 , 479462 , 490217 , 490508 , 509605 , 513290 , 517330 , 518137 , 522970 , 554174 , 557749 , 575734 , 577768 , 580275 , 585951 , 589795 , 593987 , 602007 , 604990 , 605283 , 619739 , 624897 , 643452 , 646579 , 650263 , 679220 , 685399 , 685404 , 706667 , 708789 , 720697 , 728225 , 731875 , 740937 , 749332 , 757974 , 759602 , 765229 , 775715 , 781068 , 787153 , 790459 , 790499 , 791858 , 807262 , 807545 , 813526 , 813573 , 827282 );
Copy