3
13.89 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
761918
771286
813735
787595
795229
758574
660976
545257
781805
805871
753316
802410
709881
720953
814200
781863
795238
796182
748371
718055
813747
709952
796175
635202
585953
805882
781860
813017
765140
612375
795225
795233
591295
607698
781991
802724
558025
682075
497103
607662
828506
828486
648974
819408
819716
815358
800899
800903
800900
827282
800894
515289
684359
800895
425958
471827
510264
575845
419807
491530
404464
634545
448830
]
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 (761918 , 771286 , 813735 , 787595 , 795229 , 758574 , 660976 , 545257 , 781805 , 805871 , 753316 , 802410 , 709881 , 720953 , 814200 , 781863 , 795238 , 796182 , 748371 , 718055 , 813747 , 709952 , 796175 , 635202 , 585953 , 805882 , 781860 , 813017 , 765140 , 612375 , 795225 , 795233 , 591295 , 607698 , 781991 , 802724 , 558025 , 682075 , 497103 , 607662 , 828506 , 828486 , 648974 , 819408 , 819716 , 815358 , 800899 , 800903 , 800900 , 827282 , 800894 , 515289 , 684359 , 800895 , 425958 , 471827 , 510264 , 575845 , 419807 , 491530 , 404464 , 634545 , 448830 );
Copy
4
2.36 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
404464
419807
425958
448830
471827
491530
497103
510264
515289
545257
558025
575845
585953
591295
607662
607698
612375
634545
635202
648974
660976
682075
684359
709881
709952
718055
720953
748371
753316
758574
761918
765140
771286
781805
781860
781863
781991
787595
795225
795229
795233
795238
796175
796182
800894
800895
800899
800900
800903
802410
802724
805871
805882
813017
813735
813747
814200
815358
819408
819716
827282
828486
828506
]
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 (404464 , 419807 , 425958 , 448830 , 471827 , 491530 , 497103 , 510264 , 515289 , 545257 , 558025 , 575845 , 585953 , 591295 , 607662 , 607698 , 612375 , 634545 , 635202 , 648974 , 660976 , 682075 , 684359 , 709881 , 709952 , 718055 , 720953 , 748371 , 753316 , 758574 , 761918 , 765140 , 771286 , 781805 , 781860 , 781863 , 781991 , 787595 , 795225 , 795229 , 795233 , 795238 , 796175 , 796182 , 800894 , 800895 , 800899 , 800900 , 800903 , 802410 , 802724 , 805871 , 805882 , 813017 , 813735 , 813747 , 814200 , 815358 , 819408 , 819716 , 827282 , 828486 , 828506 );
Copy
5
72.35 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
404464
419807
425958
448830
471827
491530
497103
510264
515289
545257
558025
575845
585953
591295
607662
607698
612375
634545
635202
648974
660976
682075
684359
709881
709952
718055
720953
748371
753316
758574
761918
765140
771286
781805
781860
781863
781991
787595
795225
795229
795233
795238
796175
796182
800894
800895
800899
800900
800903
802410
802724
805871
805882
813017
813735
813747
814200
815358
819408
819716
827282
828486
828506
]
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 (404464 , 419807 , 425958 , 448830 , 471827 , 491530 , 497103 , 510264 , 515289 , 545257 , 558025 , 575845 , 585953 , 591295 , 607662 , 607698 , 612375 , 634545 , 635202 , 648974 , 660976 , 682075 , 684359 , 709881 , 709952 , 718055 , 720953 , 748371 , 753316 , 758574 , 761918 , 765140 , 771286 , 781805 , 781860 , 781863 , 781991 , 787595 , 795225 , 795229 , 795233 , 795238 , 796175 , 796182 , 800894 , 800895 , 800899 , 800900 , 800903 , 802410 , 802724 , 805871 , 805882 , 813017 , 813735 , 813747 , 814200 , 815358 , 819408 , 819716 , 827282 , 828486 , 828506 );
Copy