3
17.13 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
725194
514123
422168
452575
422166
457456
433371
509479
820683
457866
620648
460907
784257
682316
421865
426865
457429
440744
421915
442523
443278
439744
439742
445459
502274
600399
614770
439738
421854
421879
422154
439730
422203
750675
798684
421850
439765
422189
439801
710524
618381
449428
439736
614835
602974
439677
549830
439812
422208
441003
496862
726805
439767
426991
439676
439681
444890
448409
470202
420635
422187
439720
439751
433310
528403
]
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 (725194 , 514123 , 422168 , 452575 , 422166 , 457456 , 433371 , 509479 , 820683 , 457866 , 620648 , 460907 , 784257 , 682316 , 421865 , 426865 , 457429 , 440744 , 421915 , 442523 , 443278 , 439744 , 439742 , 445459 , 502274 , 600399 , 614770 , 439738 , 421854 , 421879 , 422154 , 439730 , 422203 , 750675 , 798684 , 421850 , 439765 , 422189 , 439801 , 710524 , 618381 , 449428 , 439736 , 614835 , 602974 , 439677 , 549830 , 439812 , 422208 , 441003 , 496862 , 726805 , 439767 , 426991 , 439676 , 439681 , 444890 , 448409 , 470202 , 420635 , 422187 , 439720 , 439751 , 433310 , 528403 );
Copy
4
2.48 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
420635
421850
421854
421865
421879
421915
422154
422166
422168
422187
422189
422203
422208
426865
426991
433310
433371
439676
439677
439681
439720
439730
439736
439738
439742
439744
439751
439765
439767
439801
439812
440744
441003
442523
443278
444890
445459
448409
449428
452575
457429
457456
457866
460907
470202
496862
502274
509479
514123
528403
549830
600399
602974
614770
614835
618381
620648
682316
710524
725194
726805
750675
784257
798684
820683
]
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 (420635 , 421850 , 421854 , 421865 , 421879 , 421915 , 422154 , 422166 , 422168 , 422187 , 422189 , 422203 , 422208 , 426865 , 426991 , 433310 , 433371 , 439676 , 439677 , 439681 , 439720 , 439730 , 439736 , 439738 , 439742 , 439744 , 439751 , 439765 , 439767 , 439801 , 439812 , 440744 , 441003 , 442523 , 443278 , 444890 , 445459 , 448409 , 449428 , 452575 , 457429 , 457456 , 457866 , 460907 , 470202 , 496862 , 502274 , 509479 , 514123 , 528403 , 549830 , 600399 , 602974 , 614770 , 614835 , 618381 , 620648 , 682316 , 710524 , 725194 , 726805 , 750675 , 784257 , 798684 , 820683 );
Copy
5
126.09 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
420635
421850
421854
421865
421879
421915
422154
422166
422168
422187
422189
422203
422208
426865
426991
433310
433371
439676
439677
439681
439720
439730
439736
439738
439742
439744
439751
439765
439767
439801
439812
440744
441003
442523
443278
444890
445459
448409
449428
452575
457429
457456
457866
460907
470202
496862
502274
509479
514123
528403
549830
600399
602974
614770
614835
618381
620648
682316
710524
725194
726805
750675
784257
798684
820683
]
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 (420635 , 421850 , 421854 , 421865 , 421879 , 421915 , 422154 , 422166 , 422168 , 422187 , 422189 , 422203 , 422208 , 426865 , 426991 , 433310 , 433371 , 439676 , 439677 , 439681 , 439720 , 439730 , 439736 , 439738 , 439742 , 439744 , 439751 , 439765 , 439767 , 439801 , 439812 , 440744 , 441003 , 442523 , 443278 , 444890 , 445459 , 448409 , 449428 , 452575 , 457429 , 457456 , 457866 , 460907 , 470202 , 496862 , 502274 , 509479 , 514123 , 528403 , 549830 , 600399 , 602974 , 614770 , 614835 , 618381 , 620648 , 682316 , 710524 , 725194 , 726805 , 750675 , 784257 , 798684 , 820683 );
Copy