3
11.09 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
528614
573308
823537
578400
817851
817828
545779
792578
522775
722480
621413
625447
624436
803473
808080
573309
584730
722541
814948
624802
604465
604554
517853
565038
611571
403340
817767
823538
565161
598993
817109
807389
525345
399295
595421
425627
399252
399399
817127
565916
573311
408299
399369
402092
399355
498594
527452
562110
573304
569457
630915
417390
517849
414621
495734
518493
532343
418363
495752
525864
603258
580280
518438
605521
562108
]
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 (528614 , 573308 , 823537 , 578400 , 817851 , 817828 , 545779 , 792578 , 522775 , 722480 , 621413 , 625447 , 624436 , 803473 , 808080 , 573309 , 584730 , 722541 , 814948 , 624802 , 604465 , 604554 , 517853 , 565038 , 611571 , 403340 , 817767 , 823538 , 565161 , 598993 , 817109 , 807389 , 525345 , 399295 , 595421 , 425627 , 399252 , 399399 , 817127 , 565916 , 573311 , 408299 , 399369 , 402092 , 399355 , 498594 , 527452 , 562110 , 573304 , 569457 , 630915 , 417390 , 517849 , 414621 , 495734 , 518493 , 532343 , 418363 , 495752 , 525864 , 603258 , 580280 , 518438 , 605521 , 562108 );
Copy
4
3.44 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
399252
399295
399355
399369
399399
402092
403340
408299
414621
417390
418363
425627
495734
495752
498594
517849
517853
518438
518493
522775
525345
525864
527452
528614
532343
545779
562108
562110
565038
565161
565916
569457
573304
573308
573309
573311
578400
580280
584730
595421
598993
603258
604465
604554
605521
611571
621413
624436
624802
625447
630915
722480
722541
792578
803473
807389
808080
814948
817109
817127
817767
817828
817851
823537
823538
]
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 (399252 , 399295 , 399355 , 399369 , 399399 , 402092 , 403340 , 408299 , 414621 , 417390 , 418363 , 425627 , 495734 , 495752 , 498594 , 517849 , 517853 , 518438 , 518493 , 522775 , 525345 , 525864 , 527452 , 528614 , 532343 , 545779 , 562108 , 562110 , 565038 , 565161 , 565916 , 569457 , 573304 , 573308 , 573309 , 573311 , 578400 , 580280 , 584730 , 595421 , 598993 , 603258 , 604465 , 604554 , 605521 , 611571 , 621413 , 624436 , 624802 , 625447 , 630915 , 722480 , 722541 , 792578 , 803473 , 807389 , 808080 , 814948 , 817109 , 817127 , 817767 , 817828 , 817851 , 823537 , 823538 );
Copy
5
91.97 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
399252
399295
399355
399369
399399
402092
403340
408299
414621
417390
418363
425627
495734
495752
498594
517849
517853
518438
518493
522775
525345
525864
527452
528614
532343
545779
562108
562110
565038
565161
565916
569457
573304
573308
573309
573311
578400
580280
584730
595421
598993
603258
604465
604554
605521
611571
621413
624436
624802
625447
630915
722480
722541
792578
803473
807389
808080
814948
817109
817127
817767
817828
817851
823537
823538
]
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 (399252 , 399295 , 399355 , 399369 , 399399 , 402092 , 403340 , 408299 , 414621 , 417390 , 418363 , 425627 , 495734 , 495752 , 498594 , 517849 , 517853 , 518438 , 518493 , 522775 , 525345 , 525864 , 527452 , 528614 , 532343 , 545779 , 562108 , 562110 , 565038 , 565161 , 565916 , 569457 , 573304 , 573308 , 573309 , 573311 , 578400 , 580280 , 584730 , 595421 , 598993 , 603258 , 604465 , 604554 , 605521 , 611571 , 621413 , 624436 , 624802 , 625447 , 630915 , 722480 , 722541 , 792578 , 803473 , 807389 , 808080 , 814948 , 817109 , 817127 , 817767 , 817828 , 817851 , 823537 , 823538 );
Copy