3
8.62 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
396690
744452
561566
592428
808132
771963
591117
786056
808476
709311
812163
801839
808139
517929
531476
727001
480247
530475
741619
480244
720622
650449
611329
806127
612089
808137
517925
530518
531412
647640
665790
591122
613166
589678
590138
591127
742579
459235
534220
576009
703051
650389
592388
622054
591115
732400
480245
509328
504040
532797
535039
573933
805439
775790
459248
459243
531415
519960
554887
571827
591123
622990
637461
585384
88373
620070
633130
458764
527062
612053
]
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 (396690 , 744452 , 561566 , 592428 , 808132 , 771963 , 591117 , 786056 , 808476 , 709311 , 812163 , 801839 , 808139 , 517929 , 531476 , 727001 , 480247 , 530475 , 741619 , 480244 , 720622 , 650449 , 611329 , 806127 , 612089 , 808137 , 517925 , 530518 , 531412 , 647640 , 665790 , 591122 , 613166 , 589678 , 590138 , 591127 , 742579 , 459235 , 534220 , 576009 , 703051 , 650389 , 592388 , 622054 , 591115 , 732400 , 480245 , 509328 , 504040 , 532797 , 535039 , 573933 , 805439 , 775790 , 459248 , 459243 , 531415 , 519960 , 554887 , 571827 , 591123 , 622990 , 637461 , 585384 , 88373 , 620070 , 633130 , 458764 , 527062 , 612053 );
Copy
4
2.43 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
88373
396690
458764
459235
459243
459248
480244
480245
480247
504040
509328
517925
517929
519960
527062
530475
530518
531412
531415
531476
532797
534220
535039
554887
561566
571827
573933
576009
585384
589678
590138
591115
591117
591122
591123
591127
592388
592428
611329
612053
612089
613166
620070
622054
622990
633130
637461
647640
650389
650449
665790
703051
709311
720622
727001
732400
741619
742579
744452
771963
775790
786056
801839
805439
806127
808132
808137
808139
808476
812163
]
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 (88373 , 396690 , 458764 , 459235 , 459243 , 459248 , 480244 , 480245 , 480247 , 504040 , 509328 , 517925 , 517929 , 519960 , 527062 , 530475 , 530518 , 531412 , 531415 , 531476 , 532797 , 534220 , 535039 , 554887 , 561566 , 571827 , 573933 , 576009 , 585384 , 589678 , 590138 , 591115 , 591117 , 591122 , 591123 , 591127 , 592388 , 592428 , 611329 , 612053 , 612089 , 613166 , 620070 , 622054 , 622990 , 633130 , 637461 , 647640 , 650389 , 650449 , 665790 , 703051 , 709311 , 720622 , 727001 , 732400 , 741619 , 742579 , 744452 , 771963 , 775790 , 786056 , 801839 , 805439 , 806127 , 808132 , 808137 , 808139 , 808476 , 812163 );
Copy
5
93.76 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
88373
396690
458764
459235
459243
459248
480244
480245
480247
504040
509328
517925
517929
519960
527062
530475
530518
531412
531415
531476
532797
534220
535039
554887
561566
571827
573933
576009
585384
589678
590138
591115
591117
591122
591123
591127
592388
592428
611329
612053
612089
613166
620070
622054
622990
633130
637461
647640
650389
650449
665790
703051
709311
720622
727001
732400
741619
742579
744452
771963
775790
786056
801839
805439
806127
808132
808137
808139
808476
812163
]
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 (88373 , 396690 , 458764 , 459235 , 459243 , 459248 , 480244 , 480245 , 480247 , 504040 , 509328 , 517925 , 517929 , 519960 , 527062 , 530475 , 530518 , 531412 , 531415 , 531476 , 532797 , 534220 , 535039 , 554887 , 561566 , 571827 , 573933 , 576009 , 585384 , 589678 , 590138 , 591115 , 591117 , 591122 , 591123 , 591127 , 592388 , 592428 , 611329 , 612053 , 612089 , 613166 , 620070 , 622054 , 622990 , 633130 , 637461 , 647640 , 650389 , 650449 , 665790 , 703051 , 709311 , 720622 , 727001 , 732400 , 741619 , 742579 , 744452 , 771963 , 775790 , 786056 , 801839 , 805439 , 806127 , 808132 , 808137 , 808139 , 808476 , 812163 );
Copy