3
12.59 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
562626
537914
556374
596226
622871
412535
491924
446894
419571
645004
469824
527519
547527
560301
580174
692743
614428
504196
525700
807419
550099
597533
432745
461306
655924
442356
644982
534201
537926
534464
551172
651561
598794
605698
637065
588376
620116
642359
628403
508003
507817
502191
491911
590469
420853
459565
652125
659215
527218
473139
620124
614992
585079
519679
552217
631597
612414
584236
524555
810109
624953
424332
]
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 (562626 , 537914 , 556374 , 596226 , 622871 , 412535 , 491924 , 446894 , 419571 , 645004 , 469824 , 527519 , 547527 , 560301 , 580174 , 692743 , 614428 , 504196 , 525700 , 807419 , 550099 , 597533 , 432745 , 461306 , 655924 , 442356 , 644982 , 534201 , 537926 , 534464 , 551172 , 651561 , 598794 , 605698 , 637065 , 588376 , 620116 , 642359 , 628403 , 508003 , 507817 , 502191 , 491911 , 590469 , 420853 , 459565 , 652125 , 659215 , 527218 , 473139 , 620124 , 614992 , 585079 , 519679 , 552217 , 631597 , 612414 , 584236 , 524555 , 810109 , 624953 , 424332 );
Copy
4
3.08 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
412535
419571
420853
424332
432745
442356
446894
459565
461306
469824
473139
491911
491924
502191
504196
507817
508003
519679
524555
525700
527218
527519
534201
534464
537914
537926
547527
550099
551172
552217
556374
560301
562626
580174
584236
585079
588376
590469
596226
597533
598794
605698
612414
614428
614992
620116
620124
622871
624953
628403
631597
637065
642359
644982
645004
651561
652125
655924
659215
692743
807419
810109
]
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 (412535 , 419571 , 420853 , 424332 , 432745 , 442356 , 446894 , 459565 , 461306 , 469824 , 473139 , 491911 , 491924 , 502191 , 504196 , 507817 , 508003 , 519679 , 524555 , 525700 , 527218 , 527519 , 534201 , 534464 , 537914 , 537926 , 547527 , 550099 , 551172 , 552217 , 556374 , 560301 , 562626 , 580174 , 584236 , 585079 , 588376 , 590469 , 596226 , 597533 , 598794 , 605698 , 612414 , 614428 , 614992 , 620116 , 620124 , 622871 , 624953 , 628403 , 631597 , 637065 , 642359 , 644982 , 645004 , 651561 , 652125 , 655924 , 659215 , 692743 , 807419 , 810109 );
Copy
5
72.19 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
412535
419571
420853
424332
432745
442356
446894
459565
461306
469824
473139
491911
491924
502191
504196
507817
508003
519679
524555
525700
527218
527519
534201
534464
537914
537926
547527
550099
551172
552217
556374
560301
562626
580174
584236
585079
588376
590469
596226
597533
598794
605698
612414
614428
614992
620116
620124
622871
624953
628403
631597
637065
642359
644982
645004
651561
652125
655924
659215
692743
807419
810109
]
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 (412535 , 419571 , 420853 , 424332 , 432745 , 442356 , 446894 , 459565 , 461306 , 469824 , 473139 , 491911 , 491924 , 502191 , 504196 , 507817 , 508003 , 519679 , 524555 , 525700 , 527218 , 527519 , 534201 , 534464 , 537914 , 537926 , 547527 , 550099 , 551172 , 552217 , 556374 , 560301 , 562626 , 580174 , 584236 , 585079 , 588376 , 590469 , 596226 , 597533 , 598794 , 605698 , 612414 , 614428 , 614992 , 620116 , 620124 , 622871 , 624953 , 628403 , 631597 , 637065 , 642359 , 644982 , 645004 , 651561 , 652125 , 655924 , 659215 , 692743 , 807419 , 810109 );
Copy