3
8.20 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
814594
818780
635768
824962
785556
429311
705064
693507
645071
547097
615532
733514
383053
502233
556271
566919
661670
595372
759037
734356
703793
615612
798971
745535
546517
718857
716880
585704
724171
744374
734662
455339
475835
495131
486222
626758
586506
804086
771922
505430
758442
647430
709428
611788
589793
596445
450556
689622
562950
764761
443639
666156
594564
780356
480851
662879
551847
621504
495706
619728
455589
595204
559959
]
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 (814594 , 818780 , 635768 , 824962 , 785556 , 429311 , 705064 , 693507 , 645071 , 547097 , 615532 , 733514 , 383053 , 502233 , 556271 , 566919 , 661670 , 595372 , 759037 , 734356 , 703793 , 615612 , 798971 , 745535 , 546517 , 718857 , 716880 , 585704 , 724171 , 744374 , 734662 , 455339 , 475835 , 495131 , 486222 , 626758 , 586506 , 804086 , 771922 , 505430 , 758442 , 647430 , 709428 , 611788 , 589793 , 596445 , 450556 , 689622 , 562950 , 764761 , 443639 , 666156 , 594564 , 780356 , 480851 , 662879 , 551847 , 621504 , 495706 , 619728 , 455589 , 595204 , 559959 );
Copy
4
2.97 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
383053
429311
443639
450556
455339
455589
475835
480851
486222
495131
495706
502233
505430
546517
547097
551847
556271
559959
562950
566919
585704
586506
589793
594564
595372
596445
611788
615532
615612
619728
621504
626758
635768
645071
647430
661670
662879
666156
689622
693507
703793
705064
709428
716880
718857
724171
733514
734356
734662
744374
745535
758442
759037
764761
771922
780356
785556
798971
804086
814594
818780
824962
]
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 (383053 , 429311 , 443639 , 450556 , 455339 , 455589 , 475835 , 480851 , 486222 , 495131 , 495706 , 502233 , 505430 , 546517 , 547097 , 551847 , 556271 , 559959 , 562950 , 566919 , 585704 , 586506 , 589793 , 594564 , 595372 , 596445 , 611788 , 615532 , 615612 , 619728 , 621504 , 626758 , 635768 , 645071 , 647430 , 661670 , 662879 , 666156 , 689622 , 693507 , 703793 , 705064 , 709428 , 716880 , 718857 , 724171 , 733514 , 734356 , 734662 , 744374 , 745535 , 758442 , 759037 , 764761 , 771922 , 780356 , 785556 , 798971 , 804086 , 814594 , 818780 , 824962 );
Copy
5
70.11 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
383053
429311
443639
450556
455339
455589
475835
480851
486222
495131
495706
502233
505430
546517
547097
551847
556271
559959
562950
566919
585704
586506
589793
594564
595372
596445
611788
615532
615612
619728
621504
626758
635768
645071
647430
661670
662879
666156
689622
693507
703793
705064
709428
716880
718857
724171
733514
734356
734662
744374
745535
758442
759037
764761
771922
780356
785556
798971
804086
814594
818780
824962
]
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 (383053 , 429311 , 443639 , 450556 , 455339 , 455589 , 475835 , 480851 , 486222 , 495131 , 495706 , 502233 , 505430 , 546517 , 547097 , 551847 , 556271 , 559959 , 562950 , 566919 , 585704 , 586506 , 589793 , 594564 , 595372 , 596445 , 611788 , 615532 , 615612 , 619728 , 621504 , 626758 , 635768 , 645071 , 647430 , 661670 , 662879 , 666156 , 689622 , 693507 , 703793 , 705064 , 709428 , 716880 , 718857 , 724171 , 733514 , 734356 , 734662 , 744374 , 745535 , 758442 , 759037 , 764761 , 771922 , 780356 , 785556 , 798971 , 804086 , 814594 , 818780 , 824962 );
Copy