3
13.31 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
685473
401601
811045
788981
772885
789210
773980
449224
703603
776303
667231
396813
407929
517112
469650
805456
491581
401213
685621
451530
562769
515101
561734
732486
453817
506194
729999
453807
525028
533058
468304
800190
509196
407958
476495
481780
491902
498435
534702
466941
539447
418134
559606
455287
446129
788886
687006
527421
576089
517822
519973
424056
477906
493493
432359
503502
483244
489847
511733
620619
516429
495795
487315
519010
551137
623641
419371
515723
556485
571834
]
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 (685473 , 401601 , 811045 , 788981 , 772885 , 789210 , 773980 , 449224 , 703603 , 776303 , 667231 , 396813 , 407929 , 517112 , 469650 , 805456 , 491581 , 401213 , 685621 , 451530 , 562769 , 515101 , 561734 , 732486 , 453817 , 506194 , 729999 , 453807 , 525028 , 533058 , 468304 , 800190 , 509196 , 407958 , 476495 , 481780 , 491902 , 498435 , 534702 , 466941 , 539447 , 418134 , 559606 , 455287 , 446129 , 788886 , 687006 , 527421 , 576089 , 517822 , 519973 , 424056 , 477906 , 493493 , 432359 , 503502 , 483244 , 489847 , 511733 , 620619 , 516429 , 495795 , 487315 , 519010 , 551137 , 623641 , 419371 , 515723 , 556485 , 571834 );
Copy
4
2.86 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
396813
401213
401601
407929
407958
418134
419371
424056
432359
446129
449224
451530
453807
453817
455287
466941
468304
469650
476495
477906
481780
483244
487315
489847
491581
491902
493493
495795
498435
503502
506194
509196
511733
515101
515723
516429
517112
517822
519010
519973
525028
527421
533058
534702
539447
551137
556485
559606
561734
562769
571834
576089
620619
623641
667231
685473
685621
687006
703603
729999
732486
772885
773980
776303
788886
788981
789210
800190
805456
811045
]
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 (396813 , 401213 , 401601 , 407929 , 407958 , 418134 , 419371 , 424056 , 432359 , 446129 , 449224 , 451530 , 453807 , 453817 , 455287 , 466941 , 468304 , 469650 , 476495 , 477906 , 481780 , 483244 , 487315 , 489847 , 491581 , 491902 , 493493 , 495795 , 498435 , 503502 , 506194 , 509196 , 511733 , 515101 , 515723 , 516429 , 517112 , 517822 , 519010 , 519973 , 525028 , 527421 , 533058 , 534702 , 539447 , 551137 , 556485 , 559606 , 561734 , 562769 , 571834 , 576089 , 620619 , 623641 , 667231 , 685473 , 685621 , 687006 , 703603 , 729999 , 732486 , 772885 , 773980 , 776303 , 788886 , 788981 , 789210 , 800190 , 805456 , 811045 );
Copy
5
117.86 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
396813
401213
401601
407929
407958
418134
419371
424056
432359
446129
449224
451530
453807
453817
455287
466941
468304
469650
476495
477906
481780
483244
487315
489847
491581
491902
493493
495795
498435
503502
506194
509196
511733
515101
515723
516429
517112
517822
519010
519973
525028
527421
533058
534702
539447
551137
556485
559606
561734
562769
571834
576089
620619
623641
667231
685473
685621
687006
703603
729999
732486
772885
773980
776303
788886
788981
789210
800190
805456
811045
]
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 (396813 , 401213 , 401601 , 407929 , 407958 , 418134 , 419371 , 424056 , 432359 , 446129 , 449224 , 451530 , 453807 , 453817 , 455287 , 466941 , 468304 , 469650 , 476495 , 477906 , 481780 , 483244 , 487315 , 489847 , 491581 , 491902 , 493493 , 495795 , 498435 , 503502 , 506194 , 509196 , 511733 , 515101 , 515723 , 516429 , 517112 , 517822 , 519010 , 519973 , 525028 , 527421 , 533058 , 534702 , 539447 , 551137 , 556485 , 559606 , 561734 , 562769 , 571834 , 576089 , 620619 , 623641 , 667231 , 685473 , 685621 , 687006 , 703603 , 729999 , 732486 , 772885 , 773980 , 776303 , 788886 , 788981 , 789210 , 800190 , 805456 , 811045 );
Copy