3
8.99 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
744481
744457
357824
458538
499800
741150
389238
798674
760507
803566
773183
758218
569827
803601
813188
418946
390219
620105
564767
813478
586662
514568
476713
478492
489318
777782
606831
463867
569454
729843
510043
814883
507193
801532
785364
783966
582558
507165
733887
738877
770271
508485
820070
626547
556530
398824
804246
582573
777314
479008
673093
492703
495772
778811
521918
494202
791324
450968
510291
527415
716087
461696
653561
526604
447004
443112
652855
653238
465261
424305
]
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 (744481 , 744457 , 357824 , 458538 , 499800 , 741150 , 389238 , 798674 , 760507 , 803566 , 773183 , 758218 , 569827 , 803601 , 813188 , 418946 , 390219 , 620105 , 564767 , 813478 , 586662 , 514568 , 476713 , 478492 , 489318 , 777782 , 606831 , 463867 , 569454 , 729843 , 510043 , 814883 , 507193 , 801532 , 785364 , 783966 , 582558 , 507165 , 733887 , 738877 , 770271 , 508485 , 820070 , 626547 , 556530 , 398824 , 804246 , 582573 , 777314 , 479008 , 673093 , 492703 , 495772 , 778811 , 521918 , 494202 , 791324 , 450968 , 510291 , 527415 , 716087 , 461696 , 653561 , 526604 , 447004 , 443112 , 652855 , 653238 , 465261 , 424305 );
Copy
4
2.39 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
357824
389238
390219
398824
418946
424305
443112
447004
450968
458538
461696
463867
465261
476713
478492
479008
489318
492703
494202
495772
499800
507165
507193
508485
510043
510291
514568
521918
526604
527415
556530
564767
569454
569827
582558
582573
586662
606831
620105
626547
652855
653238
653561
673093
716087
729843
733887
738877
741150
744457
744481
758218
760507
770271
773183
777314
777782
778811
783966
785364
791324
798674
801532
803566
803601
804246
813188
813478
814883
820070
]
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 (357824 , 389238 , 390219 , 398824 , 418946 , 424305 , 443112 , 447004 , 450968 , 458538 , 461696 , 463867 , 465261 , 476713 , 478492 , 479008 , 489318 , 492703 , 494202 , 495772 , 499800 , 507165 , 507193 , 508485 , 510043 , 510291 , 514568 , 521918 , 526604 , 527415 , 556530 , 564767 , 569454 , 569827 , 582558 , 582573 , 586662 , 606831 , 620105 , 626547 , 652855 , 653238 , 653561 , 673093 , 716087 , 729843 , 733887 , 738877 , 741150 , 744457 , 744481 , 758218 , 760507 , 770271 , 773183 , 777314 , 777782 , 778811 , 783966 , 785364 , 791324 , 798674 , 801532 , 803566 , 803601 , 804246 , 813188 , 813478 , 814883 , 820070 );
Copy
5
81.60 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
357824
389238
390219
398824
418946
424305
443112
447004
450968
458538
461696
463867
465261
476713
478492
479008
489318
492703
494202
495772
499800
507165
507193
508485
510043
510291
514568
521918
526604
527415
556530
564767
569454
569827
582558
582573
586662
606831
620105
626547
652855
653238
653561
673093
716087
729843
733887
738877
741150
744457
744481
758218
760507
770271
773183
777314
777782
778811
783966
785364
791324
798674
801532
803566
803601
804246
813188
813478
814883
820070
]
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 (357824 , 389238 , 390219 , 398824 , 418946 , 424305 , 443112 , 447004 , 450968 , 458538 , 461696 , 463867 , 465261 , 476713 , 478492 , 479008 , 489318 , 492703 , 494202 , 495772 , 499800 , 507165 , 507193 , 508485 , 510043 , 510291 , 514568 , 521918 , 526604 , 527415 , 556530 , 564767 , 569454 , 569827 , 582558 , 582573 , 586662 , 606831 , 620105 , 626547 , 652855 , 653238 , 653561 , 673093 , 716087 , 729843 , 733887 , 738877 , 741150 , 744457 , 744481 , 758218 , 760507 , 770271 , 773183 , 777314 , 777782 , 778811 , 783966 , 785364 , 791324 , 798674 , 801532 , 803566 , 803601 , 804246 , 813188 , 813478 , 814883 , 820070 );
Copy