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
697170
648488
696333
716270
609811
630718
591832
793820
802150
813482
730813
813904
458293
449545
524167
495281
490417
707440
684695
610322
626324
726621
760064
744061
424350
75664
419277
457557
481392
481757
514447
444326
818072
458323
530458
542540
652007
557735
562462
616862
610055
623972
803580
730359
630664
453025
411471
437965
509325
501543
511505
516496
515893
493402
437610
417095
454032
523422
621375
459378
533390
531062
460373
588343
807687
610958
509324
720072
553096
525332
602614
618359
584492
619003
]
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 (697170 , 648488 , 696333 , 716270 , 609811 , 630718 , 591832 , 793820 , 802150 , 813482 , 730813 , 813904 , 458293 , 449545 , 524167 , 495281 , 490417 , 707440 , 684695 , 610322 , 626324 , 726621 , 760064 , 744061 , 424350 , 75664 , 419277 , 457557 , 481392 , 481757 , 514447 , 444326 , 818072 , 458323 , 530458 , 542540 , 652007 , 557735 , 562462 , 616862 , 610055 , 623972 , 803580 , 730359 , 630664 , 453025 , 411471 , 437965 , 509325 , 501543 , 511505 , 516496 , 515893 , 493402 , 437610 , 417095 , 454032 , 523422 , 621375 , 459378 , 533390 , 531062 , 460373 , 588343 , 807687 , 610958 , 509324 , 720072 , 553096 , 525332 , 602614 , 618359 , 584492 , 619003 );
Copy
4
2.52 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
75664
411471
417095
419277
424350
437610
437965
444326
449545
453025
454032
457557
458293
458323
459378
460373
481392
481757
490417
493402
495281
501543
509324
509325
511505
514447
515893
516496
523422
524167
525332
530458
531062
533390
542540
553096
557735
562462
584492
588343
591832
602614
609811
610055
610322
610958
616862
618359
619003
621375
623972
626324
630664
630718
648488
652007
684695
696333
697170
707440
716270
720072
726621
730359
730813
744061
760064
793820
802150
803580
807687
813482
813904
818072
]
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 (75664 , 411471 , 417095 , 419277 , 424350 , 437610 , 437965 , 444326 , 449545 , 453025 , 454032 , 457557 , 458293 , 458323 , 459378 , 460373 , 481392 , 481757 , 490417 , 493402 , 495281 , 501543 , 509324 , 509325 , 511505 , 514447 , 515893 , 516496 , 523422 , 524167 , 525332 , 530458 , 531062 , 533390 , 542540 , 553096 , 557735 , 562462 , 584492 , 588343 , 591832 , 602614 , 609811 , 610055 , 610322 , 610958 , 616862 , 618359 , 619003 , 621375 , 623972 , 626324 , 630664 , 630718 , 648488 , 652007 , 684695 , 696333 , 697170 , 707440 , 716270 , 720072 , 726621 , 730359 , 730813 , 744061 , 760064 , 793820 , 802150 , 803580 , 807687 , 813482 , 813904 , 818072 );
Copy
5
107.06 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
75664
411471
417095
419277
424350
437610
437965
444326
449545
453025
454032
457557
458293
458323
459378
460373
481392
481757
490417
493402
495281
501543
509324
509325
511505
514447
515893
516496
523422
524167
525332
530458
531062
533390
542540
553096
557735
562462
584492
588343
591832
602614
609811
610055
610322
610958
616862
618359
619003
621375
623972
626324
630664
630718
648488
652007
684695
696333
697170
707440
716270
720072
726621
730359
730813
744061
760064
793820
802150
803580
807687
813482
813904
818072
]
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 (75664 , 411471 , 417095 , 419277 , 424350 , 437610 , 437965 , 444326 , 449545 , 453025 , 454032 , 457557 , 458293 , 458323 , 459378 , 460373 , 481392 , 481757 , 490417 , 493402 , 495281 , 501543 , 509324 , 509325 , 511505 , 514447 , 515893 , 516496 , 523422 , 524167 , 525332 , 530458 , 531062 , 533390 , 542540 , 553096 , 557735 , 562462 , 584492 , 588343 , 591832 , 602614 , 609811 , 610055 , 610322 , 610958 , 616862 , 618359 , 619003 , 621375 , 623972 , 626324 , 630664 , 630718 , 648488 , 652007 , 684695 , 696333 , 697170 , 707440 , 716270 , 720072 , 726621 , 730359 , 730813 , 744061 , 760064 , 793820 , 802150 , 803580 , 807687 , 813482 , 813904 , 818072 );
Copy