3
11.97 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
549563
725373
560043
802128
660711
797389
803743
648046
827940
708238
784671
809864
535037
592970
773906
518189
518482
576658
827943
571075
609412
634811
611285
400968
576689
649057
623262
463313
402490
398146
525839
775195
639366
443886
445416
471165
678874
400726
490827
690106
398966
457497
421153
444916
389418
815076
503498
557948
528029
582899
559766
750064
425028
523317
508444
396422
528030
517300
513025
477873
430553
607919
549783
490559
502533
557942
487703
414618
551736
603906
]
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 (549563 , 725373 , 560043 , 802128 , 660711 , 797389 , 803743 , 648046 , 827940 , 708238 , 784671 , 809864 , 535037 , 592970 , 773906 , 518189 , 518482 , 576658 , 827943 , 571075 , 609412 , 634811 , 611285 , 400968 , 576689 , 649057 , 623262 , 463313 , 402490 , 398146 , 525839 , 775195 , 639366 , 443886 , 445416 , 471165 , 678874 , 400726 , 490827 , 690106 , 398966 , 457497 , 421153 , 444916 , 389418 , 815076 , 503498 , 557948 , 528029 , 582899 , 559766 , 750064 , 425028 , 523317 , 508444 , 396422 , 528030 , 517300 , 513025 , 477873 , 430553 , 607919 , 549783 , 490559 , 502533 , 557942 , 487703 , 414618 , 551736 , 603906 );
Copy
4
2.71 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
389418
396422
398146
398966
400726
400968
402490
414618
421153
425028
430553
443886
444916
445416
457497
463313
471165
477873
487703
490559
490827
502533
503498
508444
513025
517300
518189
518482
523317
525839
528029
528030
535037
549563
549783
551736
557942
557948
559766
560043
571075
576658
576689
582899
592970
603906
607919
609412
611285
623262
634811
639366
648046
649057
660711
678874
690106
708238
725373
750064
773906
775195
784671
797389
802128
803743
809864
815076
827940
827943
]
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 (389418 , 396422 , 398146 , 398966 , 400726 , 400968 , 402490 , 414618 , 421153 , 425028 , 430553 , 443886 , 444916 , 445416 , 457497 , 463313 , 471165 , 477873 , 487703 , 490559 , 490827 , 502533 , 503498 , 508444 , 513025 , 517300 , 518189 , 518482 , 523317 , 525839 , 528029 , 528030 , 535037 , 549563 , 549783 , 551736 , 557942 , 557948 , 559766 , 560043 , 571075 , 576658 , 576689 , 582899 , 592970 , 603906 , 607919 , 609412 , 611285 , 623262 , 634811 , 639366 , 648046 , 649057 , 660711 , 678874 , 690106 , 708238 , 725373 , 750064 , 773906 , 775195 , 784671 , 797389 , 802128 , 803743 , 809864 , 815076 , 827940 , 827943 );
Copy
5
102.91 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
389418
396422
398146
398966
400726
400968
402490
414618
421153
425028
430553
443886
444916
445416
457497
463313
471165
477873
487703
490559
490827
502533
503498
508444
513025
517300
518189
518482
523317
525839
528029
528030
535037
549563
549783
551736
557942
557948
559766
560043
571075
576658
576689
582899
592970
603906
607919
609412
611285
623262
634811
639366
648046
649057
660711
678874
690106
708238
725373
750064
773906
775195
784671
797389
802128
803743
809864
815076
827940
827943
]
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 (389418 , 396422 , 398146 , 398966 , 400726 , 400968 , 402490 , 414618 , 421153 , 425028 , 430553 , 443886 , 444916 , 445416 , 457497 , 463313 , 471165 , 477873 , 487703 , 490559 , 490827 , 502533 , 503498 , 508444 , 513025 , 517300 , 518189 , 518482 , 523317 , 525839 , 528029 , 528030 , 535037 , 549563 , 549783 , 551736 , 557942 , 557948 , 559766 , 560043 , 571075 , 576658 , 576689 , 582899 , 592970 , 603906 , 607919 , 609412 , 611285 , 623262 , 634811 , 639366 , 648046 , 649057 , 660711 , 678874 , 690106 , 708238 , 725373 , 750064 , 773906 , 775195 , 784671 , 797389 , 802128 , 803743 , 809864 , 815076 , 827940 , 827943 );
Copy