4
11.46 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
730390
817653
824307
636918
781027
726851
730985
823823
718121
728160
729452
713474
819851
616721
603288
622646
816807
473631
619923
588906
794387
724971
733394
431916
754875
435545
464483
676445
809560
741549
758270
644854
592304
747219
514150
591383
805192
429483
526779
467179
552147
654412
588402
805379
755819
625924
509880
517850
525140
469343
552360
650485
619832
643043
808063
757750
424904
505884
504889
554118
712557
552539
806099
618982
518608
493207
475550
530000
523854
]
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 (730390 , 817653 , 824307 , 636918 , 781027 , 726851 , 730985 , 823823 , 718121 , 728160 , 729452 , 713474 , 819851 , 616721 , 603288 , 622646 , 816807 , 473631 , 619923 , 588906 , 794387 , 724971 , 733394 , 431916 , 754875 , 435545 , 464483 , 676445 , 809560 , 741549 , 758270 , 644854 , 592304 , 747219 , 514150 , 591383 , 805192 , 429483 , 526779 , 467179 , 552147 , 654412 , 588402 , 805379 , 755819 , 625924 , 509880 , 517850 , 525140 , 469343 , 552360 , 650485 , 619832 , 643043 , 808063 , 757750 , 424904 , 505884 , 504889 , 554118 , 712557 , 552539 , 806099 , 618982 , 518608 , 493207 , 475550 , 530000 , 523854 );
Copy
5
2.35 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
424904
429483
431916
435545
464483
467179
469343
473631
475550
493207
504889
505884
509880
514150
517850
518608
523854
525140
526779
530000
552147
552360
552539
554118
588402
588906
591383
592304
603288
616721
618982
619832
619923
622646
625924
636918
643043
644854
650485
654412
676445
712557
713474
718121
724971
726851
728160
729452
730390
730985
733394
741549
747219
754875
755819
757750
758270
781027
794387
805192
805379
806099
808063
809560
816807
817653
819851
823823
824307
]
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 (424904 , 429483 , 431916 , 435545 , 464483 , 467179 , 469343 , 473631 , 475550 , 493207 , 504889 , 505884 , 509880 , 514150 , 517850 , 518608 , 523854 , 525140 , 526779 , 530000 , 552147 , 552360 , 552539 , 554118 , 588402 , 588906 , 591383 , 592304 , 603288 , 616721 , 618982 , 619832 , 619923 , 622646 , 625924 , 636918 , 643043 , 644854 , 650485 , 654412 , 676445 , 712557 , 713474 , 718121 , 724971 , 726851 , 728160 , 729452 , 730390 , 730985 , 733394 , 741549 , 747219 , 754875 , 755819 , 757750 , 758270 , 781027 , 794387 , 805192 , 805379 , 806099 , 808063 , 809560 , 816807 , 817653 , 819851 , 823823 , 824307 );
Copy
6
121.58 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
424904
429483
431916
435545
464483
467179
469343
473631
475550
493207
504889
505884
509880
514150
517850
518608
523854
525140
526779
530000
552147
552360
552539
554118
588402
588906
591383
592304
603288
616721
618982
619832
619923
622646
625924
636918
643043
644854
650485
654412
676445
712557
713474
718121
724971
726851
728160
729452
730390
730985
733394
741549
747219
754875
755819
757750
758270
781027
794387
805192
805379
806099
808063
809560
816807
817653
819851
823823
824307
]
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 (424904 , 429483 , 431916 , 435545 , 464483 , 467179 , 469343 , 473631 , 475550 , 493207 , 504889 , 505884 , 509880 , 514150 , 517850 , 518608 , 523854 , 525140 , 526779 , 530000 , 552147 , 552360 , 552539 , 554118 , 588402 , 588906 , 591383 , 592304 , 603288 , 616721 , 618982 , 619832 , 619923 , 622646 , 625924 , 636918 , 643043 , 644854 , 650485 , 654412 , 676445 , 712557 , 713474 , 718121 , 724971 , 726851 , 728160 , 729452 , 730390 , 730985 , 733394 , 741549 , 747219 , 754875 , 755819 , 757750 , 758270 , 781027 , 794387 , 805192 , 805379 , 806099 , 808063 , 809560 , 816807 , 817653 , 819851 , 823823 , 824307 );
Copy