3
13.38 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
790394
416185
293499
397329
578838
677125
592937
495044
598493
383362
521851
573303
671890
394006
467982
535458
592875
483903
539559
489818
516701
542627
526267
548537
512879
521476
508962
574511
406042
663976
577369
599711
614095
592038
512680
587266
414105
560902
618868
596748
680207
601414
459163
583722
598190
473004
614867
548574
597692
628397
517217
548556
90718
609147
551913
493192
478092
597452
619394
402905
622938
605450
546720
552936
530948
599967
621125
467387
524496
517175
541871
610613
458608
598199
420262
]
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 (790394 , 416185 , 293499 , 397329 , 578838 , 677125 , 592937 , 495044 , 598493 , 383362 , 521851 , 573303 , 671890 , 394006 , 467982 , 535458 , 592875 , 483903 , 539559 , 489818 , 516701 , 542627 , 526267 , 548537 , 512879 , 521476 , 508962 , 574511 , 406042 , 663976 , 577369 , 599711 , 614095 , 592038 , 512680 , 587266 , 414105 , 560902 , 618868 , 596748 , 680207 , 601414 , 459163 , 583722 , 598190 , 473004 , 614867 , 548574 , 597692 , 628397 , 517217 , 548556 , 90718 , 609147 , 551913 , 493192 , 478092 , 597452 , 619394 , 402905 , 622938 , 605450 , 546720 , 552936 , 530948 , 599967 , 621125 , 467387 , 524496 , 517175 , 541871 , 610613 , 458608 , 598199 , 420262 );
Copy
4
2.79 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
90718
293499
383362
394006
397329
402905
406042
414105
416185
420262
458608
459163
467387
467982
473004
478092
483903
489818
493192
495044
508962
512680
512879
516701
517175
517217
521476
521851
524496
526267
530948
535458
539559
541871
542627
546720
548537
548556
548574
551913
552936
560902
573303
574511
577369
578838
583722
587266
592038
592875
592937
596748
597452
597692
598190
598199
598493
599711
599967
601414
605450
609147
610613
614095
614867
618868
619394
621125
622938
628397
663976
671890
677125
680207
790394
]
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 (90718 , 293499 , 383362 , 394006 , 397329 , 402905 , 406042 , 414105 , 416185 , 420262 , 458608 , 459163 , 467387 , 467982 , 473004 , 478092 , 483903 , 489818 , 493192 , 495044 , 508962 , 512680 , 512879 , 516701 , 517175 , 517217 , 521476 , 521851 , 524496 , 526267 , 530948 , 535458 , 539559 , 541871 , 542627 , 546720 , 548537 , 548556 , 548574 , 551913 , 552936 , 560902 , 573303 , 574511 , 577369 , 578838 , 583722 , 587266 , 592038 , 592875 , 592937 , 596748 , 597452 , 597692 , 598190 , 598199 , 598493 , 599711 , 599967 , 601414 , 605450 , 609147 , 610613 , 614095 , 614867 , 618868 , 619394 , 621125 , 622938 , 628397 , 663976 , 671890 , 677125 , 680207 , 790394 );
Copy
5
84.26 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
90718
293499
383362
394006
397329
402905
406042
414105
416185
420262
458608
459163
467387
467982
473004
478092
483903
489818
493192
495044
508962
512680
512879
516701
517175
517217
521476
521851
524496
526267
530948
535458
539559
541871
542627
546720
548537
548556
548574
551913
552936
560902
573303
574511
577369
578838
583722
587266
592038
592875
592937
596748
597452
597692
598190
598199
598493
599711
599967
601414
605450
609147
610613
614095
614867
618868
619394
621125
622938
628397
663976
671890
677125
680207
790394
]
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 (90718 , 293499 , 383362 , 394006 , 397329 , 402905 , 406042 , 414105 , 416185 , 420262 , 458608 , 459163 , 467387 , 467982 , 473004 , 478092 , 483903 , 489818 , 493192 , 495044 , 508962 , 512680 , 512879 , 516701 , 517175 , 517217 , 521476 , 521851 , 524496 , 526267 , 530948 , 535458 , 539559 , 541871 , 542627 , 546720 , 548537 , 548556 , 548574 , 551913 , 552936 , 560902 , 573303 , 574511 , 577369 , 578838 , 583722 , 587266 , 592038 , 592875 , 592937 , 596748 , 597452 , 597692 , 598190 , 598199 , 598493 , 599711 , 599967 , 601414 , 605450 , 609147 , 610613 , 614095 , 614867 , 618868 , 619394 , 621125 , 622938 , 628397 , 663976 , 671890 , 677125 , 680207 , 790394 );
Copy