3
10.12 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
486971
552616
557073
397701
647365
825708
778832
744487
817751
710799
778788
827737
786829
825710
108109
569052
648077
626290
538420
406645
730756
763077
732640
640377
488715
806397
732589
471968
423515
710808
472668
483900
509400
640282
576580
693151
755165
508470
789275
452181
510480
557084
472685
460086
596337
480263
598833
563379
443622
421162
566295
761602
456216
501225
411804
562765
421373
540600
601845
528862
456346
562754
472681
548067
]
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 (486971 , 552616 , 557073 , 397701 , 647365 , 825708 , 778832 , 744487 , 817751 , 710799 , 778788 , 827737 , 786829 , 825710 , 108109 , 569052 , 648077 , 626290 , 538420 , 406645 , 730756 , 763077 , 732640 , 640377 , 488715 , 806397 , 732589 , 471968 , 423515 , 710808 , 472668 , 483900 , 509400 , 640282 , 576580 , 693151 , 755165 , 508470 , 789275 , 452181 , 510480 , 557084 , 472685 , 460086 , 596337 , 480263 , 598833 , 563379 , 443622 , 421162 , 566295 , 761602 , 456216 , 501225 , 411804 , 562765 , 421373 , 540600 , 601845 , 528862 , 456346 , 562754 , 472681 , 548067 );
Copy
4
2.23 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
108109
397701
406645
411804
421162
421373
423515
443622
452181
456216
456346
460086
471968
472668
472681
472685
480263
483900
486971
488715
501225
508470
509400
510480
528862
538420
540600
548067
552616
557073
557084
562754
562765
563379
566295
569052
576580
596337
598833
601845
626290
640282
640377
647365
648077
693151
710799
710808
730756
732589
732640
744487
755165
761602
763077
778788
778832
786829
789275
806397
817751
825708
825710
827737
]
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 (108109 , 397701 , 406645 , 411804 , 421162 , 421373 , 423515 , 443622 , 452181 , 456216 , 456346 , 460086 , 471968 , 472668 , 472681 , 472685 , 480263 , 483900 , 486971 , 488715 , 501225 , 508470 , 509400 , 510480 , 528862 , 538420 , 540600 , 548067 , 552616 , 557073 , 557084 , 562754 , 562765 , 563379 , 566295 , 569052 , 576580 , 596337 , 598833 , 601845 , 626290 , 640282 , 640377 , 647365 , 648077 , 693151 , 710799 , 710808 , 730756 , 732589 , 732640 , 744487 , 755165 , 761602 , 763077 , 778788 , 778832 , 786829 , 789275 , 806397 , 817751 , 825708 , 825710 , 827737 );
Copy
5
100.18 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
108109
397701
406645
411804
421162
421373
423515
443622
452181
456216
456346
460086
471968
472668
472681
472685
480263
483900
486971
488715
501225
508470
509400
510480
528862
538420
540600
548067
552616
557073
557084
562754
562765
563379
566295
569052
576580
596337
598833
601845
626290
640282
640377
647365
648077
693151
710799
710808
730756
732589
732640
744487
755165
761602
763077
778788
778832
786829
789275
806397
817751
825708
825710
827737
]
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 (108109 , 397701 , 406645 , 411804 , 421162 , 421373 , 423515 , 443622 , 452181 , 456216 , 456346 , 460086 , 471968 , 472668 , 472681 , 472685 , 480263 , 483900 , 486971 , 488715 , 501225 , 508470 , 509400 , 510480 , 528862 , 538420 , 540600 , 548067 , 552616 , 557073 , 557084 , 562754 , 562765 , 563379 , 566295 , 569052 , 576580 , 596337 , 598833 , 601845 , 626290 , 640282 , 640377 , 647365 , 648077 , 693151 , 710799 , 710808 , 730756 , 732589 , 732640 , 744487 , 755165 , 761602 , 763077 , 778788 , 778832 , 786829 , 789275 , 806397 , 817751 , 825708 , 825710 , 827737 );
Copy