3
12.61 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
740725
729121
773840
532287
718153
818314
588426
730062
543136
577076
710026
636477
549148
549154
692252
457376
669245
550515
800125
706381
610711
574994
618768
745954
626348
628718
487638
478992
478986
549152
627258
478988
549144
660843
542602
542345
530468
660800
751354
591859
478983
543150
643380
507207
478985
478990
512810
478987
632119
592898
599289
543143
655482
484269
603716
407464
457076
556970
525088
463830
494720
486531
521552
660834
604419
556951
586534
494764
591438
]
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 (740725 , 729121 , 773840 , 532287 , 718153 , 818314 , 588426 , 730062 , 543136 , 577076 , 710026 , 636477 , 549148 , 549154 , 692252 , 457376 , 669245 , 550515 , 800125 , 706381 , 610711 , 574994 , 618768 , 745954 , 626348 , 628718 , 487638 , 478992 , 478986 , 549152 , 627258 , 478988 , 549144 , 660843 , 542602 , 542345 , 530468 , 660800 , 751354 , 591859 , 478983 , 543150 , 643380 , 507207 , 478985 , 478990 , 512810 , 478987 , 632119 , 592898 , 599289 , 543143 , 655482 , 484269 , 603716 , 407464 , 457076 , 556970 , 525088 , 463830 , 494720 , 486531 , 521552 , 660834 , 604419 , 556951 , 586534 , 494764 , 591438 );
Copy
4
2.60 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
407464
457076
457376
463830
478983
478985
478986
478987
478988
478990
478992
484269
486531
487638
494720
494764
507207
512810
521552
525088
530468
532287
542345
542602
543136
543143
543150
549144
549148
549152
549154
550515
556951
556970
574994
577076
586534
588426
591438
591859
592898
599289
603716
604419
610711
618768
626348
627258
628718
632119
636477
643380
655482
660800
660834
660843
669245
692252
706381
710026
718153
729121
730062
740725
745954
751354
773840
800125
818314
]
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 (407464 , 457076 , 457376 , 463830 , 478983 , 478985 , 478986 , 478987 , 478988 , 478990 , 478992 , 484269 , 486531 , 487638 , 494720 , 494764 , 507207 , 512810 , 521552 , 525088 , 530468 , 532287 , 542345 , 542602 , 543136 , 543143 , 543150 , 549144 , 549148 , 549152 , 549154 , 550515 , 556951 , 556970 , 574994 , 577076 , 586534 , 588426 , 591438 , 591859 , 592898 , 599289 , 603716 , 604419 , 610711 , 618768 , 626348 , 627258 , 628718 , 632119 , 636477 , 643380 , 655482 , 660800 , 660834 , 660843 , 669245 , 692252 , 706381 , 710026 , 718153 , 729121 , 730062 , 740725 , 745954 , 751354 , 773840 , 800125 , 818314 );
Copy
5
83.04 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
407464
457076
457376
463830
478983
478985
478986
478987
478988
478990
478992
484269
486531
487638
494720
494764
507207
512810
521552
525088
530468
532287
542345
542602
543136
543143
543150
549144
549148
549152
549154
550515
556951
556970
574994
577076
586534
588426
591438
591859
592898
599289
603716
604419
610711
618768
626348
627258
628718
632119
636477
643380
655482
660800
660834
660843
669245
692252
706381
710026
718153
729121
730062
740725
745954
751354
773840
800125
818314
]
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 (407464 , 457076 , 457376 , 463830 , 478983 , 478985 , 478986 , 478987 , 478988 , 478990 , 478992 , 484269 , 486531 , 487638 , 494720 , 494764 , 507207 , 512810 , 521552 , 525088 , 530468 , 532287 , 542345 , 542602 , 543136 , 543143 , 543150 , 549144 , 549148 , 549152 , 549154 , 550515 , 556951 , 556970 , 574994 , 577076 , 586534 , 588426 , 591438 , 591859 , 592898 , 599289 , 603716 , 604419 , 610711 , 618768 , 626348 , 627258 , 628718 , 632119 , 636477 , 643380 , 655482 , 660800 , 660834 , 660843 , 669245 , 692252 , 706381 , 710026 , 718153 , 729121 , 730062 , 740725 , 745954 , 751354 , 773840 , 800125 , 818314 );
Copy