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
460296
680362
656841
534032
537676
825705
792870
742263
477183
788498
660098
784722
778122
589621
762511
395192
777956
789095
810740
729789
746208
805239
534027
737926
503642
577912
713872
510286
668776
587523
775560
770062
748906
460112
545599
475507
649055
639010
383926
817946
680321
541818
769518
527694
454998
530255
483200
562969
578303
779247
807469
808143
724921
433718
616944
734154
541869
424528
495828
466706
612675
448172
465179
522089
498994
408306
647952
616036
]
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 (460296 , 680362 , 656841 , 534032 , 537676 , 825705 , 792870 , 742263 , 477183 , 788498 , 660098 , 784722 , 778122 , 589621 , 762511 , 395192 , 777956 , 789095 , 810740 , 729789 , 746208 , 805239 , 534027 , 737926 , 503642 , 577912 , 713872 , 510286 , 668776 , 587523 , 775560 , 770062 , 748906 , 460112 , 545599 , 475507 , 649055 , 639010 , 383926 , 817946 , 680321 , 541818 , 769518 , 527694 , 454998 , 530255 , 483200 , 562969 , 578303 , 779247 , 807469 , 808143 , 724921 , 433718 , 616944 , 734154 , 541869 , 424528 , 495828 , 466706 , 612675 , 448172 , 465179 , 522089 , 498994 , 408306 , 647952 , 616036 );
Copy
4
1.85 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
383926
395192
408306
424528
433718
448172
454998
460112
460296
465179
466706
475507
477183
483200
495828
498994
503642
510286
522089
527694
530255
534027
534032
537676
541818
541869
545599
562969
577912
578303
587523
589621
612675
616036
616944
639010
647952
649055
656841
660098
668776
680321
680362
713872
724921
729789
734154
737926
742263
746208
748906
769518
770062
775560
777956
778122
779247
784722
788498
789095
792870
805239
807469
808143
810740
817946
825705
]
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 (383926 , 395192 , 408306 , 424528 , 433718 , 448172 , 454998 , 460112 , 460296 , 465179 , 466706 , 475507 , 477183 , 483200 , 495828 , 498994 , 503642 , 510286 , 522089 , 527694 , 530255 , 534027 , 534032 , 537676 , 541818 , 541869 , 545599 , 562969 , 577912 , 578303 , 587523 , 589621 , 612675 , 616036 , 616944 , 639010 , 647952 , 649055 , 656841 , 660098 , 668776 , 680321 , 680362 , 713872 , 724921 , 729789 , 734154 , 737926 , 742263 , 746208 , 748906 , 769518 , 770062 , 775560 , 777956 , 778122 , 779247 , 784722 , 788498 , 789095 , 792870 , 805239 , 807469 , 808143 , 810740 , 817946 , 825705 );
Copy
5
83.13 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
383926
395192
408306
424528
433718
448172
454998
460112
460296
465179
466706
475507
477183
483200
495828
498994
503642
510286
522089
527694
530255
534027
534032
537676
541818
541869
545599
562969
577912
578303
587523
589621
612675
616036
616944
639010
647952
649055
656841
660098
668776
680321
680362
713872
724921
729789
734154
737926
742263
746208
748906
769518
770062
775560
777956
778122
779247
784722
788498
789095
792870
805239
807469
808143
810740
817946
825705
]
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 (383926 , 395192 , 408306 , 424528 , 433718 , 448172 , 454998 , 460112 , 460296 , 465179 , 466706 , 475507 , 477183 , 483200 , 495828 , 498994 , 503642 , 510286 , 522089 , 527694 , 530255 , 534027 , 534032 , 537676 , 541818 , 541869 , 545599 , 562969 , 577912 , 578303 , 587523 , 589621 , 612675 , 616036 , 616944 , 639010 , 647952 , 649055 , 656841 , 660098 , 668776 , 680321 , 680362 , 713872 , 724921 , 729789 , 734154 , 737926 , 742263 , 746208 , 748906 , 769518 , 770062 , 775560 , 777956 , 778122 , 779247 , 784722 , 788498 , 789095 , 792870 , 805239 , 807469 , 808143 , 810740 , 817946 , 825705 );
Copy