3
15.85 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
615812
486575
615907
427289
574680
525753
713928
535896
420664
760291
452446
794261
736289
636543
446814
486039
557074
579321
769400
614820
552521
728820
535510
708437
461763
631171
491886
564863
424304
531121
531249
425829
452456
543344
628823
602928
797439
516496
590920
423829
606533
495400
498775
423572
398464
825385
458991
419914
819701
522361
480910
452545
510253
452404
526161
590493
631981
555325
514760
556665
788260
524574
555391
613171
543615
544800
489257
489258
]
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 (615812 , 486575 , 615907 , 427289 , 574680 , 525753 , 713928 , 535896 , 420664 , 760291 , 452446 , 794261 , 736289 , 636543 , 446814 , 486039 , 557074 , 579321 , 769400 , 614820 , 552521 , 728820 , 535510 , 708437 , 461763 , 631171 , 491886 , 564863 , 424304 , 531121 , 531249 , 425829 , 452456 , 543344 , 628823 , 602928 , 797439 , 516496 , 590920 , 423829 , 606533 , 495400 , 498775 , 423572 , 398464 , 825385 , 458991 , 419914 , 819701 , 522361 , 480910 , 452545 , 510253 , 452404 , 526161 , 590493 , 631981 , 555325 , 514760 , 556665 , 788260 , 524574 , 555391 , 613171 , 543615 , 544800 , 489257 , 489258 );
Copy
4
2.55 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
398464
419914
420664
423572
423829
424304
425829
427289
446814
452404
452446
452456
452545
458991
461763
480910
486039
486575
489257
489258
491886
495400
498775
510253
514760
516496
522361
524574
525753
526161
531121
531249
535510
535896
543344
543615
544800
552521
555325
555391
556665
557074
564863
574680
579321
590493
590920
602928
606533
613171
614820
615812
615907
628823
631171
631981
636543
708437
713928
728820
736289
760291
769400
788260
794261
797439
819701
825385
]
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 (398464 , 419914 , 420664 , 423572 , 423829 , 424304 , 425829 , 427289 , 446814 , 452404 , 452446 , 452456 , 452545 , 458991 , 461763 , 480910 , 486039 , 486575 , 489257 , 489258 , 491886 , 495400 , 498775 , 510253 , 514760 , 516496 , 522361 , 524574 , 525753 , 526161 , 531121 , 531249 , 535510 , 535896 , 543344 , 543615 , 544800 , 552521 , 555325 , 555391 , 556665 , 557074 , 564863 , 574680 , 579321 , 590493 , 590920 , 602928 , 606533 , 613171 , 614820 , 615812 , 615907 , 628823 , 631171 , 631981 , 636543 , 708437 , 713928 , 728820 , 736289 , 760291 , 769400 , 788260 , 794261 , 797439 , 819701 , 825385 );
Copy
5
94.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
398464
419914
420664
423572
423829
424304
425829
427289
446814
452404
452446
452456
452545
458991
461763
480910
486039
486575
489257
489258
491886
495400
498775
510253
514760
516496
522361
524574
525753
526161
531121
531249
535510
535896
543344
543615
544800
552521
555325
555391
556665
557074
564863
574680
579321
590493
590920
602928
606533
613171
614820
615812
615907
628823
631171
631981
636543
708437
713928
728820
736289
760291
769400
788260
794261
797439
819701
825385
]
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 (398464 , 419914 , 420664 , 423572 , 423829 , 424304 , 425829 , 427289 , 446814 , 452404 , 452446 , 452456 , 452545 , 458991 , 461763 , 480910 , 486039 , 486575 , 489257 , 489258 , 491886 , 495400 , 498775 , 510253 , 514760 , 516496 , 522361 , 524574 , 525753 , 526161 , 531121 , 531249 , 535510 , 535896 , 543344 , 543615 , 544800 , 552521 , 555325 , 555391 , 556665 , 557074 , 564863 , 574680 , 579321 , 590493 , 590920 , 602928 , 606533 , 613171 , 614820 , 615812 , 615907 , 628823 , 631171 , 631981 , 636543 , 708437 , 713928 , 728820 , 736289 , 760291 , 769400 , 788260 , 794261 , 797439 , 819701 , 825385 );
Copy