3
11.67 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
789709
819403
384420
515964
406210
643072
563009
601644
824587
471410
479803
423480
826265
540958
424502
420276
516222
471809
600453
434561
397855
430313
814850
641130
517125
817189
516972
567743
457418
619920
564814
460739
507779
577471
493127
721737
593676
527451
552593
448350
712777
799596
482139
742304
719781
751984
424379
581006
801304
558877
439784
417830
476691
469389
814787
495225
484553
465519
653407
429084
473474
457440
443112
424305
452100
467957
493270
529524
735538
414960
518511
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 (789709 , 819403 , 384420 , 515964 , 406210 , 643072 , 563009 , 601644 , 824587 , 471410 , 479803 , 423480 , 826265 , 540958 , 424502 , 420276 , 516222 , 471809 , 600453 , 434561 , 397855 , 430313 , 814850 , 641130 , 517125 , 817189 , 516972 , 567743 , 457418 , 619920 , 564814 , 460739 , 507779 , 577471 , 493127 , 721737 , 593676 , 527451 , 552593 , 448350 , 712777 , 799596 , 482139 , 742304 , 719781 , 751984 , 424379 , 581006 , 801304 , 558877 , 439784 , 417830 , 476691 , 469389 , 814787 , 495225 , 484553 , 465519 , 653407 , 429084 , 473474 , 457440 , 443112 , 424305 , 452100 , 467957 , 493270 , 529524 , 735538 , 414960 , 518511 , 604429 );
Copy
4
3.05 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
397855
406210
414960
417830
420276
423480
424305
424379
424502
429084
430313
434561
439784
443112
448350
452100
457418
457440
460739
465519
467957
469389
471410
471809
473474
476691
479803
482139
484553
493127
493270
495225
507779
515964
516222
516972
517125
518511
527451
529524
540958
552593
558877
563009
564814
567743
577471
581006
593676
600453
601644
604429
619920
641130
643072
653407
712777
719781
721737
735538
742304
751984
789709
799596
801304
814787
814850
817189
819403
824587
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 , 397855 , 406210 , 414960 , 417830 , 420276 , 423480 , 424305 , 424379 , 424502 , 429084 , 430313 , 434561 , 439784 , 443112 , 448350 , 452100 , 457418 , 457440 , 460739 , 465519 , 467957 , 469389 , 471410 , 471809 , 473474 , 476691 , 479803 , 482139 , 484553 , 493127 , 493270 , 495225 , 507779 , 515964 , 516222 , 516972 , 517125 , 518511 , 527451 , 529524 , 540958 , 552593 , 558877 , 563009 , 564814 , 567743 , 577471 , 581006 , 593676 , 600453 , 601644 , 604429 , 619920 , 641130 , 643072 , 653407 , 712777 , 719781 , 721737 , 735538 , 742304 , 751984 , 789709 , 799596 , 801304 , 814787 , 814850 , 817189 , 819403 , 824587 , 826265 );
Copy
5
100.97 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
397855
406210
414960
417830
420276
423480
424305
424379
424502
429084
430313
434561
439784
443112
448350
452100
457418
457440
460739
465519
467957
469389
471410
471809
473474
476691
479803
482139
484553
493127
493270
495225
507779
515964
516222
516972
517125
518511
527451
529524
540958
552593
558877
563009
564814
567743
577471
581006
593676
600453
601644
604429
619920
641130
643072
653407
712777
719781
721737
735538
742304
751984
789709
799596
801304
814787
814850
817189
819403
824587
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 , 397855 , 406210 , 414960 , 417830 , 420276 , 423480 , 424305 , 424379 , 424502 , 429084 , 430313 , 434561 , 439784 , 443112 , 448350 , 452100 , 457418 , 457440 , 460739 , 465519 , 467957 , 469389 , 471410 , 471809 , 473474 , 476691 , 479803 , 482139 , 484553 , 493127 , 493270 , 495225 , 507779 , 515964 , 516222 , 516972 , 517125 , 518511 , 527451 , 529524 , 540958 , 552593 , 558877 , 563009 , 564814 , 567743 , 577471 , 581006 , 593676 , 600453 , 601644 , 604429 , 619920 , 641130 , 643072 , 653407 , 712777 , 719781 , 721737 , 735538 , 742304 , 751984 , 789709 , 799596 , 801304 , 814787 , 814850 , 817189 , 819403 , 824587 , 826265 );
Copy