4
9.60 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
537607
755398
806210
813667
465047
806208
774769
636043
445529
486721
446701
638346
811053
543879
689376
809046
806102
812825
402882
806160
445955
392415
650800
596816
806153
540480
564690
465175
392918
403559
540483
609799
396399
531406
396327
539441
453758
421328
536728
534320
472513
389588
394772
465491
454651
458104
452258
452106
398039
444386
446756
446703
446704
387604
492739
403495
452190
402122
465490
480777
514565
473504
465487
]
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 (537607 , 755398 , 806210 , 813667 , 465047 , 806208 , 774769 , 636043 , 445529 , 486721 , 446701 , 638346 , 811053 , 543879 , 689376 , 809046 , 806102 , 812825 , 402882 , 806160 , 445955 , 392415 , 650800 , 596816 , 806153 , 540480 , 564690 , 465175 , 392918 , 403559 , 540483 , 609799 , 396399 , 531406 , 396327 , 539441 , 453758 , 421328 , 536728 , 534320 , 472513 , 389588 , 394772 , 465491 , 454651 , 458104 , 452258 , 452106 , 398039 , 444386 , 446756 , 446703 , 446704 , 387604 , 492739 , 403495 , 452190 , 402122 , 465490 , 480777 , 514565 , 473504 , 465487 );
Copy
5
2.66 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
387604
389588
392415
392918
394772
396327
396399
398039
402122
402882
403495
403559
421328
444386
445529
445955
446701
446703
446704
446756
452106
452190
452258
453758
454651
458104
465047
465175
465487
465490
465491
472513
473504
480777
486721
492739
514565
531406
534320
536728
537607
539441
540480
540483
543879
564690
596816
609799
636043
638346
650800
689376
755398
774769
806102
806153
806160
806208
806210
809046
811053
812825
813667
]
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 (387604 , 389588 , 392415 , 392918 , 394772 , 396327 , 396399 , 398039 , 402122 , 402882 , 403495 , 403559 , 421328 , 444386 , 445529 , 445955 , 446701 , 446703 , 446704 , 446756 , 452106 , 452190 , 452258 , 453758 , 454651 , 458104 , 465047 , 465175 , 465487 , 465490 , 465491 , 472513 , 473504 , 480777 , 486721 , 492739 , 514565 , 531406 , 534320 , 536728 , 537607 , 539441 , 540480 , 540483 , 543879 , 564690 , 596816 , 609799 , 636043 , 638346 , 650800 , 689376 , 755398 , 774769 , 806102 , 806153 , 806160 , 806208 , 806210 , 809046 , 811053 , 812825 , 813667 );
Copy
6
82.37 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
387604
389588
392415
392918
394772
396327
396399
398039
402122
402882
403495
403559
421328
444386
445529
445955
446701
446703
446704
446756
452106
452190
452258
453758
454651
458104
465047
465175
465487
465490
465491
472513
473504
480777
486721
492739
514565
531406
534320
536728
537607
539441
540480
540483
543879
564690
596816
609799
636043
638346
650800
689376
755398
774769
806102
806153
806160
806208
806210
809046
811053
812825
813667
]
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 (387604 , 389588 , 392415 , 392918 , 394772 , 396327 , 396399 , 398039 , 402122 , 402882 , 403495 , 403559 , 421328 , 444386 , 445529 , 445955 , 446701 , 446703 , 446704 , 446756 , 452106 , 452190 , 452258 , 453758 , 454651 , 458104 , 465047 , 465175 , 465487 , 465490 , 465491 , 472513 , 473504 , 480777 , 486721 , 492739 , 514565 , 531406 , 534320 , 536728 , 537607 , 539441 , 540480 , 540483 , 543879 , 564690 , 596816 , 609799 , 636043 , 638346 , 650800 , 689376 , 755398 , 774769 , 806102 , 806153 , 806160 , 806208 , 806210 , 809046 , 811053 , 812825 , 813667 );
Copy