4
8.66 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
628087
520767
584391
681787
628850
750947
751094
521294
731261
741280
797494
725025
740366
643707
779831
805046
799862
529498
529574
728226
575041
620903
790399
749202
759791
504075
576583
679051
660462
656197
722382
607631
786201
723606
493688
576979
542701
677240
634114
594340
812109
747313
761790
714226
541325
541326
576201
545223
655275
695556
658796
811384
805413
733295
523197
659412
533018
526100
497178
575601
584351
621765
643728
679717
624281
607154
814175
537455
542709
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 (628087 , 520767 , 584391 , 681787 , 628850 , 750947 , 751094 , 521294 , 731261 , 741280 , 797494 , 725025 , 740366 , 643707 , 779831 , 805046 , 799862 , 529498 , 529574 , 728226 , 575041 , 620903 , 790399 , 749202 , 759791 , 504075 , 576583 , 679051 , 660462 , 656197 , 722382 , 607631 , 786201 , 723606 , 493688 , 576979 , 542701 , 677240 , 634114 , 594340 , 812109 , 747313 , 761790 , 714226 , 541325 , 541326 , 576201 , 545223 , 655275 , 695556 , 658796 , 811384 , 805413 , 733295 , 523197 , 659412 , 533018 , 526100 , 497178 , 575601 , 584351 , 621765 , 643728 , 679717 , 624281 , 607154 , 814175 , 537455 , 542709 , 603906 );
Copy
5
2.22 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
493688
497178
504075
520767
521294
523197
526100
529498
529574
533018
537455
541325
541326
542701
542709
545223
575041
575601
576201
576583
576979
584351
584391
594340
603906
607154
607631
620903
621765
624281
628087
628850
634114
643707
643728
655275
656197
658796
659412
660462
677240
679051
679717
681787
695556
714226
722382
723606
725025
728226
731261
733295
740366
741280
747313
749202
750947
751094
759791
761790
779831
786201
790399
797494
799862
805046
805413
811384
812109
814175
]
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 (493688 , 497178 , 504075 , 520767 , 521294 , 523197 , 526100 , 529498 , 529574 , 533018 , 537455 , 541325 , 541326 , 542701 , 542709 , 545223 , 575041 , 575601 , 576201 , 576583 , 576979 , 584351 , 584391 , 594340 , 603906 , 607154 , 607631 , 620903 , 621765 , 624281 , 628087 , 628850 , 634114 , 643707 , 643728 , 655275 , 656197 , 658796 , 659412 , 660462 , 677240 , 679051 , 679717 , 681787 , 695556 , 714226 , 722382 , 723606 , 725025 , 728226 , 731261 , 733295 , 740366 , 741280 , 747313 , 749202 , 750947 , 751094 , 759791 , 761790 , 779831 , 786201 , 790399 , 797494 , 799862 , 805046 , 805413 , 811384 , 812109 , 814175 );
Copy
6
81.34 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
493688
497178
504075
520767
521294
523197
526100
529498
529574
533018
537455
541325
541326
542701
542709
545223
575041
575601
576201
576583
576979
584351
584391
594340
603906
607154
607631
620903
621765
624281
628087
628850
634114
643707
643728
655275
656197
658796
659412
660462
677240
679051
679717
681787
695556
714226
722382
723606
725025
728226
731261
733295
740366
741280
747313
749202
750947
751094
759791
761790
779831
786201
790399
797494
799862
805046
805413
811384
812109
814175
]
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 (493688 , 497178 , 504075 , 520767 , 521294 , 523197 , 526100 , 529498 , 529574 , 533018 , 537455 , 541325 , 541326 , 542701 , 542709 , 545223 , 575041 , 575601 , 576201 , 576583 , 576979 , 584351 , 584391 , 594340 , 603906 , 607154 , 607631 , 620903 , 621765 , 624281 , 628087 , 628850 , 634114 , 643707 , 643728 , 655275 , 656197 , 658796 , 659412 , 660462 , 677240 , 679051 , 679717 , 681787 , 695556 , 714226 , 722382 , 723606 , 725025 , 728226 , 731261 , 733295 , 740366 , 741280 , 747313 , 749202 , 750947 , 751094 , 759791 , 761790 , 779831 , 786201 , 790399 , 797494 , 799862 , 805046 , 805413 , 811384 , 812109 , 814175 );
Copy