3
10.08 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
810279
808310
803818
382488
708435
590982
608359
795074
745984
773201
791148
813772
695678
412001
607500
639654
808484
418611
517457
648701
705738
775014
399151
233733
407878
591090
486664
454909
486380
454296
464634
462436
480645
790802
486877
579345
770555
607617
565186
586633
796425
565943
805426
825556
541224
737526
752071
811246
800454
799876
488433
587725
772234
801341
772624
386606
803222
787966
537345
519612
457953
571827
516051
]
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 (810279 , 808310 , 803818 , 382488 , 708435 , 590982 , 608359 , 795074 , 745984 , 773201 , 791148 , 813772 , 695678 , 412001 , 607500 , 639654 , 808484 , 418611 , 517457 , 648701 , 705738 , 775014 , 399151 , 233733 , 407878 , 591090 , 486664 , 454909 , 486380 , 454296 , 464634 , 462436 , 480645 , 790802 , 486877 , 579345 , 770555 , 607617 , 565186 , 586633 , 796425 , 565943 , 805426 , 825556 , 541224 , 737526 , 752071 , 811246 , 800454 , 799876 , 488433 , 587725 , 772234 , 801341 , 772624 , 386606 , 803222 , 787966 , 537345 , 519612 , 457953 , 571827 , 516051 );
Copy
4
2.66 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
233733
382488
386606
399151
407878
412001
418611
454296
454909
457953
462436
464634
480645
486380
486664
486877
488433
516051
517457
519612
537345
541224
565186
565943
571827
579345
586633
587725
590982
591090
607500
607617
608359
639654
648701
695678
705738
708435
737526
745984
752071
770555
772234
772624
773201
775014
787966
790802
791148
795074
796425
799876
800454
801341
803222
803818
805426
808310
808484
810279
811246
813772
825556
]
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 (233733 , 382488 , 386606 , 399151 , 407878 , 412001 , 418611 , 454296 , 454909 , 457953 , 462436 , 464634 , 480645 , 486380 , 486664 , 486877 , 488433 , 516051 , 517457 , 519612 , 537345 , 541224 , 565186 , 565943 , 571827 , 579345 , 586633 , 587725 , 590982 , 591090 , 607500 , 607617 , 608359 , 639654 , 648701 , 695678 , 705738 , 708435 , 737526 , 745984 , 752071 , 770555 , 772234 , 772624 , 773201 , 775014 , 787966 , 790802 , 791148 , 795074 , 796425 , 799876 , 800454 , 801341 , 803222 , 803818 , 805426 , 808310 , 808484 , 810279 , 811246 , 813772 , 825556 );
Copy
5
93.09 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
233733
382488
386606
399151
407878
412001
418611
454296
454909
457953
462436
464634
480645
486380
486664
486877
488433
516051
517457
519612
537345
541224
565186
565943
571827
579345
586633
587725
590982
591090
607500
607617
608359
639654
648701
695678
705738
708435
737526
745984
752071
770555
772234
772624
773201
775014
787966
790802
791148
795074
796425
799876
800454
801341
803222
803818
805426
808310
808484
810279
811246
813772
825556
]
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 (233733 , 382488 , 386606 , 399151 , 407878 , 412001 , 418611 , 454296 , 454909 , 457953 , 462436 , 464634 , 480645 , 486380 , 486664 , 486877 , 488433 , 516051 , 517457 , 519612 , 537345 , 541224 , 565186 , 565943 , 571827 , 579345 , 586633 , 587725 , 590982 , 591090 , 607500 , 607617 , 608359 , 639654 , 648701 , 695678 , 705738 , 708435 , 737526 , 745984 , 752071 , 770555 , 772234 , 772624 , 773201 , 775014 , 787966 , 790802 , 791148 , 795074 , 796425 , 799876 , 800454 , 801341 , 803222 , 803818 , 805426 , 808310 , 808484 , 810279 , 811246 , 813772 , 825556 );
Copy