3
10.34 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
506989
525577
509728
423427
553352
487815
453608
575534
727871
494815
486476
499148
590856
512512
453698
470778
569211
506415
462150
471923
439532
462526
486855
478836
586024
549086
463059
587416
485918
600193
802517
710668
569223
507314
531415
442335
473923
524064
421974
510876
512384
421570
438849
752973
590263
596739
519478
446964
817537
424351
518403
454036
590667
747281
422044
519563
524535
688617
651601
525287
439931
527967
484870
]
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 (506989 , 525577 , 509728 , 423427 , 553352 , 487815 , 453608 , 575534 , 727871 , 494815 , 486476 , 499148 , 590856 , 512512 , 453698 , 470778 , 569211 , 506415 , 462150 , 471923 , 439532 , 462526 , 486855 , 478836 , 586024 , 549086 , 463059 , 587416 , 485918 , 600193 , 802517 , 710668 , 569223 , 507314 , 531415 , 442335 , 473923 , 524064 , 421974 , 510876 , 512384 , 421570 , 438849 , 752973 , 590263 , 596739 , 519478 , 446964 , 817537 , 424351 , 518403 , 454036 , 590667 , 747281 , 422044 , 519563 , 524535 , 688617 , 651601 , 525287 , 439931 , 527967 , 484870 );
Copy
4
3.50 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
421570
421974
422044
423427
424351
438849
439532
439931
442335
446964
453608
453698
454036
462150
462526
463059
470778
471923
473923
478836
484870
485918
486476
486855
487815
494815
499148
506415
506989
507314
509728
510876
512384
512512
518403
519478
519563
524064
524535
525287
525577
527967
531415
549086
553352
569211
569223
575534
586024
587416
590263
590667
590856
596739
600193
651601
688617
710668
727871
747281
752973
802517
817537
]
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 (421570 , 421974 , 422044 , 423427 , 424351 , 438849 , 439532 , 439931 , 442335 , 446964 , 453608 , 453698 , 454036 , 462150 , 462526 , 463059 , 470778 , 471923 , 473923 , 478836 , 484870 , 485918 , 486476 , 486855 , 487815 , 494815 , 499148 , 506415 , 506989 , 507314 , 509728 , 510876 , 512384 , 512512 , 518403 , 519478 , 519563 , 524064 , 524535 , 525287 , 525577 , 527967 , 531415 , 549086 , 553352 , 569211 , 569223 , 575534 , 586024 , 587416 , 590263 , 590667 , 590856 , 596739 , 600193 , 651601 , 688617 , 710668 , 727871 , 747281 , 752973 , 802517 , 817537 );
Copy
5
92.94 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
421570
421974
422044
423427
424351
438849
439532
439931
442335
446964
453608
453698
454036
462150
462526
463059
470778
471923
473923
478836
484870
485918
486476
486855
487815
494815
499148
506415
506989
507314
509728
510876
512384
512512
518403
519478
519563
524064
524535
525287
525577
527967
531415
549086
553352
569211
569223
575534
586024
587416
590263
590667
590856
596739
600193
651601
688617
710668
727871
747281
752973
802517
817537
]
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 (421570 , 421974 , 422044 , 423427 , 424351 , 438849 , 439532 , 439931 , 442335 , 446964 , 453608 , 453698 , 454036 , 462150 , 462526 , 463059 , 470778 , 471923 , 473923 , 478836 , 484870 , 485918 , 486476 , 486855 , 487815 , 494815 , 499148 , 506415 , 506989 , 507314 , 509728 , 510876 , 512384 , 512512 , 518403 , 519478 , 519563 , 524064 , 524535 , 525287 , 525577 , 527967 , 531415 , 549086 , 553352 , 569211 , 569223 , 575534 , 586024 , 587416 , 590263 , 590667 , 590856 , 596739 , 600193 , 651601 , 688617 , 710668 , 727871 , 747281 , 752973 , 802517 , 817537 );
Copy