3
8.69 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
816211
601599
616856
789709
416315
584021
430313
460739
384420
493127
643072
623263
601644
471410
819403
826265
406210
564814
407958
423480
817189
420276
471809
600453
434561
552593
814850
641130
517125
516972
619920
721737
593676
439784
476691
469389
567743
527451
495225
507779
799596
712777
482139
742304
457440
558877
719781
424379
581006
452100
493270
429084
448350
417830
529524
814787
484553
465519
653407
751984
443112
424305
467957
604429
]
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 (816211 , 601599 , 616856 , 789709 , 416315 , 584021 , 430313 , 460739 , 384420 , 493127 , 643072 , 623263 , 601644 , 471410 , 819403 , 826265 , 406210 , 564814 , 407958 , 423480 , 817189 , 420276 , 471809 , 600453 , 434561 , 552593 , 814850 , 641130 , 517125 , 516972 , 619920 , 721737 , 593676 , 439784 , 476691 , 469389 , 567743 , 527451 , 495225 , 507779 , 799596 , 712777 , 482139 , 742304 , 457440 , 558877 , 719781 , 424379 , 581006 , 452100 , 493270 , 429084 , 448350 , 417830 , 529524 , 814787 , 484553 , 465519 , 653407 , 751984 , 443112 , 424305 , 467957 , 604429 );
Copy
4
4.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
384420
406210
407958
416315
417830
420276
423480
424305
424379
429084
430313
434561
439784
443112
448350
452100
457440
460739
465519
467957
469389
471410
471809
476691
482139
484553
493127
493270
495225
507779
516972
517125
527451
529524
552593
558877
564814
567743
581006
584021
593676
600453
601599
601644
604429
616856
619920
623263
641130
643072
653407
712777
719781
721737
742304
751984
789709
799596
814787
814850
816211
817189
819403
826265
]
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 (384420 , 406210 , 407958 , 416315 , 417830 , 420276 , 423480 , 424305 , 424379 , 429084 , 430313 , 434561 , 439784 , 443112 , 448350 , 452100 , 457440 , 460739 , 465519 , 467957 , 469389 , 471410 , 471809 , 476691 , 482139 , 484553 , 493127 , 493270 , 495225 , 507779 , 516972 , 517125 , 527451 , 529524 , 552593 , 558877 , 564814 , 567743 , 581006 , 584021 , 593676 , 600453 , 601599 , 601644 , 604429 , 616856 , 619920 , 623263 , 641130 , 643072 , 653407 , 712777 , 719781 , 721737 , 742304 , 751984 , 789709 , 799596 , 814787 , 814850 , 816211 , 817189 , 819403 , 826265 );
Copy
5
87.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
384420
406210
407958
416315
417830
420276
423480
424305
424379
429084
430313
434561
439784
443112
448350
452100
457440
460739
465519
467957
469389
471410
471809
476691
482139
484553
493127
493270
495225
507779
516972
517125
527451
529524
552593
558877
564814
567743
581006
584021
593676
600453
601599
601644
604429
616856
619920
623263
641130
643072
653407
712777
719781
721737
742304
751984
789709
799596
814787
814850
816211
817189
819403
826265
]
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 (384420 , 406210 , 407958 , 416315 , 417830 , 420276 , 423480 , 424305 , 424379 , 429084 , 430313 , 434561 , 439784 , 443112 , 448350 , 452100 , 457440 , 460739 , 465519 , 467957 , 469389 , 471410 , 471809 , 476691 , 482139 , 484553 , 493127 , 493270 , 495225 , 507779 , 516972 , 517125 , 527451 , 529524 , 552593 , 558877 , 564814 , 567743 , 581006 , 584021 , 593676 , 600453 , 601599 , 601644 , 604429 , 616856 , 619920 , 623263 , 641130 , 643072 , 653407 , 712777 , 719781 , 721737 , 742304 , 751984 , 789709 , 799596 , 814787 , 814850 , 816211 , 817189 , 819403 , 826265 );
Copy