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
800384
738099
790575
13118
395591
445238
556655
442469
573470
546121
562534
568147
575185
680838
619425
622364
598375
781173
809009
782253
601923
612386
790469
471609
460178
520889
501829
508782
514273
521618
188379
446191
454911
453921
566023
571042
786178
726981
450307
486125
490704
514996
615851
765491
187072
490172
485172
493161
472879
542759
581620
752158
435738
494842
428756
439680
489343
520407
496771
600171
535460
609140
508236
489980
500562
538848
]
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 (800384 , 738099 , 790575 , 13118 , 395591 , 445238 , 556655 , 442469 , 573470 , 546121 , 562534 , 568147 , 575185 , 680838 , 619425 , 622364 , 598375 , 781173 , 809009 , 782253 , 601923 , 612386 , 790469 , 471609 , 460178 , 520889 , 501829 , 508782 , 514273 , 521618 , 188379 , 446191 , 454911 , 453921 , 566023 , 571042 , 786178 , 726981 , 450307 , 486125 , 490704 , 514996 , 615851 , 765491 , 187072 , 490172 , 485172 , 493161 , 472879 , 542759 , 581620 , 752158 , 435738 , 494842 , 428756 , 439680 , 489343 , 520407 , 496771 , 600171 , 535460 , 609140 , 508236 , 489980 , 500562 , 538848 );
Copy
4
3.23 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
13118
187072
188379
395591
428756
435738
439680
442469
445238
446191
450307
453921
454911
460178
471609
472879
485172
486125
489343
489980
490172
490704
493161
494842
496771
500562
501829
508236
508782
514273
514996
520407
520889
521618
535460
538848
542759
546121
556655
562534
566023
568147
571042
573470
575185
581620
598375
600171
601923
609140
612386
615851
619425
622364
680838
726981
738099
752158
765491
781173
782253
786178
790469
790575
800384
809009
]
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 (13118 , 187072 , 188379 , 395591 , 428756 , 435738 , 439680 , 442469 , 445238 , 446191 , 450307 , 453921 , 454911 , 460178 , 471609 , 472879 , 485172 , 486125 , 489343 , 489980 , 490172 , 490704 , 493161 , 494842 , 496771 , 500562 , 501829 , 508236 , 508782 , 514273 , 514996 , 520407 , 520889 , 521618 , 535460 , 538848 , 542759 , 546121 , 556655 , 562534 , 566023 , 568147 , 571042 , 573470 , 575185 , 581620 , 598375 , 600171 , 601923 , 609140 , 612386 , 615851 , 619425 , 622364 , 680838 , 726981 , 738099 , 752158 , 765491 , 781173 , 782253 , 786178 , 790469 , 790575 , 800384 , 809009 );
Copy
5
95.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
13118
187072
188379
395591
428756
435738
439680
442469
445238
446191
450307
453921
454911
460178
471609
472879
485172
486125
489343
489980
490172
490704
493161
494842
496771
500562
501829
508236
508782
514273
514996
520407
520889
521618
535460
538848
542759
546121
556655
562534
566023
568147
571042
573470
575185
581620
598375
600171
601923
609140
612386
615851
619425
622364
680838
726981
738099
752158
765491
781173
782253
786178
790469
790575
800384
809009
]
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 (13118 , 187072 , 188379 , 395591 , 428756 , 435738 , 439680 , 442469 , 445238 , 446191 , 450307 , 453921 , 454911 , 460178 , 471609 , 472879 , 485172 , 486125 , 489343 , 489980 , 490172 , 490704 , 493161 , 494842 , 496771 , 500562 , 501829 , 508236 , 508782 , 514273 , 514996 , 520407 , 520889 , 521618 , 535460 , 538848 , 542759 , 546121 , 556655 , 562534 , 566023 , 568147 , 571042 , 573470 , 575185 , 581620 , 598375 , 600171 , 601923 , 609140 , 612386 , 615851 , 619425 , 622364 , 680838 , 726981 , 738099 , 752158 , 765491 , 781173 , 782253 , 786178 , 790469 , 790575 , 800384 , 809009 );
Copy