3
13.14 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
575263
598856
514131
520080
524364
402125
560065
626054
471328
476508
584575
568274
568750
588257
454550
575425
450107
492628
584151
565861
579192
600494
617317
527366
524403
690718
573330
814799
411498
480862
492656
498732
806722
508140
581751
546055
571799
624425
462394
420685
420609
529244
580674
474939
561023
602001
505999
491463
445814
561929
447078
489984
544067
617322
524749
464477
485791
483320
493968
571709
600973
529777
677108
608695
569602
552342
]
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 (575263 , 598856 , 514131 , 520080 , 524364 , 402125 , 560065 , 626054 , 471328 , 476508 , 584575 , 568274 , 568750 , 588257 , 454550 , 575425 , 450107 , 492628 , 584151 , 565861 , 579192 , 600494 , 617317 , 527366 , 524403 , 690718 , 573330 , 814799 , 411498 , 480862 , 492656 , 498732 , 806722 , 508140 , 581751 , 546055 , 571799 , 624425 , 462394 , 420685 , 420609 , 529244 , 580674 , 474939 , 561023 , 602001 , 505999 , 491463 , 445814 , 561929 , 447078 , 489984 , 544067 , 617322 , 524749 , 464477 , 485791 , 483320 , 493968 , 571709 , 600973 , 529777 , 677108 , 608695 , 569602 , 552342 );
Copy
4
2.03 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
402125
411498
420609
420685
445814
447078
450107
454550
462394
464477
471328
474939
476508
480862
483320
485791
489984
491463
492628
492656
493968
498732
505999
508140
514131
520080
524364
524403
524749
527366
529244
529777
544067
546055
552342
560065
561023
561929
565861
568274
568750
569602
571709
571799
573330
575263
575425
579192
580674
581751
584151
584575
588257
598856
600494
600973
602001
608695
617317
617322
624425
626054
677108
690718
806722
814799
]
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 (402125 , 411498 , 420609 , 420685 , 445814 , 447078 , 450107 , 454550 , 462394 , 464477 , 471328 , 474939 , 476508 , 480862 , 483320 , 485791 , 489984 , 491463 , 492628 , 492656 , 493968 , 498732 , 505999 , 508140 , 514131 , 520080 , 524364 , 524403 , 524749 , 527366 , 529244 , 529777 , 544067 , 546055 , 552342 , 560065 , 561023 , 561929 , 565861 , 568274 , 568750 , 569602 , 571709 , 571799 , 573330 , 575263 , 575425 , 579192 , 580674 , 581751 , 584151 , 584575 , 588257 , 598856 , 600494 , 600973 , 602001 , 608695 , 617317 , 617322 , 624425 , 626054 , 677108 , 690718 , 806722 , 814799 );
Copy
5
89.74 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
402125
411498
420609
420685
445814
447078
450107
454550
462394
464477
471328
474939
476508
480862
483320
485791
489984
491463
492628
492656
493968
498732
505999
508140
514131
520080
524364
524403
524749
527366
529244
529777
544067
546055
552342
560065
561023
561929
565861
568274
568750
569602
571709
571799
573330
575263
575425
579192
580674
581751
584151
584575
588257
598856
600494
600973
602001
608695
617317
617322
624425
626054
677108
690718
806722
814799
]
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 (402125 , 411498 , 420609 , 420685 , 445814 , 447078 , 450107 , 454550 , 462394 , 464477 , 471328 , 474939 , 476508 , 480862 , 483320 , 485791 , 489984 , 491463 , 492628 , 492656 , 493968 , 498732 , 505999 , 508140 , 514131 , 520080 , 524364 , 524403 , 524749 , 527366 , 529244 , 529777 , 544067 , 546055 , 552342 , 560065 , 561023 , 561929 , 565861 , 568274 , 568750 , 569602 , 571709 , 571799 , 573330 , 575263 , 575425 , 579192 , 580674 , 581751 , 584151 , 584575 , 588257 , 598856 , 600494 , 600973 , 602001 , 608695 , 617317 , 617322 , 624425 , 626054 , 677108 , 690718 , 806722 , 814799 );
Copy