3
13.10 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
640807
742149
737189
724841
704717
809696
567141
804024
384938
390173
533960
526560
538576
548628
554179
542306
551149
553281
671328
586995
771155
720037
782659
531069
424862
568744
542627
581231
612437
593394
604066
609078
592307
793704
724619
386896
518451
508422
528815
518975
582430
597432
803557
808570
578500
512554
604158
30636
410843
533953
496288
567123
717215
821262
496312
600061
808526
603252
417482
382213
565168
699397
585826
639744
824501
465477
746994
579629
503274
528719
]
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 (640807 , 742149 , 737189 , 724841 , 704717 , 809696 , 567141 , 804024 , 384938 , 390173 , 533960 , 526560 , 538576 , 548628 , 554179 , 542306 , 551149 , 553281 , 671328 , 586995 , 771155 , 720037 , 782659 , 531069 , 424862 , 568744 , 542627 , 581231 , 612437 , 593394 , 604066 , 609078 , 592307 , 793704 , 724619 , 386896 , 518451 , 508422 , 528815 , 518975 , 582430 , 597432 , 803557 , 808570 , 578500 , 512554 , 604158 , 30636 , 410843 , 533953 , 496288 , 567123 , 717215 , 821262 , 496312 , 600061 , 808526 , 603252 , 417482 , 382213 , 565168 , 699397 , 585826 , 639744 , 824501 , 465477 , 746994 , 579629 , 503274 , 528719 );
Copy
4
2.40 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
30636
382213
384938
386896
390173
410843
417482
424862
465477
496288
496312
503274
508422
512554
518451
518975
526560
528719
528815
531069
533953
533960
538576
542306
542627
548628
551149
553281
554179
565168
567123
567141
568744
578500
579629
581231
582430
585826
586995
592307
593394
597432
600061
603252
604066
604158
609078
612437
639744
640807
671328
699397
704717
717215
720037
724619
724841
737189
742149
746994
771155
782659
793704
803557
804024
808526
808570
809696
821262
824501
]
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 (30636 , 382213 , 384938 , 386896 , 390173 , 410843 , 417482 , 424862 , 465477 , 496288 , 496312 , 503274 , 508422 , 512554 , 518451 , 518975 , 526560 , 528719 , 528815 , 531069 , 533953 , 533960 , 538576 , 542306 , 542627 , 548628 , 551149 , 553281 , 554179 , 565168 , 567123 , 567141 , 568744 , 578500 , 579629 , 581231 , 582430 , 585826 , 586995 , 592307 , 593394 , 597432 , 600061 , 603252 , 604066 , 604158 , 609078 , 612437 , 639744 , 640807 , 671328 , 699397 , 704717 , 717215 , 720037 , 724619 , 724841 , 737189 , 742149 , 746994 , 771155 , 782659 , 793704 , 803557 , 804024 , 808526 , 808570 , 809696 , 821262 , 824501 );
Copy
5
120.55 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
30636
382213
384938
386896
390173
410843
417482
424862
465477
496288
496312
503274
508422
512554
518451
518975
526560
528719
528815
531069
533953
533960
538576
542306
542627
548628
551149
553281
554179
565168
567123
567141
568744
578500
579629
581231
582430
585826
586995
592307
593394
597432
600061
603252
604066
604158
609078
612437
639744
640807
671328
699397
704717
717215
720037
724619
724841
737189
742149
746994
771155
782659
793704
803557
804024
808526
808570
809696
821262
824501
]
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 (30636 , 382213 , 384938 , 386896 , 390173 , 410843 , 417482 , 424862 , 465477 , 496288 , 496312 , 503274 , 508422 , 512554 , 518451 , 518975 , 526560 , 528719 , 528815 , 531069 , 533953 , 533960 , 538576 , 542306 , 542627 , 548628 , 551149 , 553281 , 554179 , 565168 , 567123 , 567141 , 568744 , 578500 , 579629 , 581231 , 582430 , 585826 , 586995 , 592307 , 593394 , 597432 , 600061 , 603252 , 604066 , 604158 , 609078 , 612437 , 639744 , 640807 , 671328 , 699397 , 704717 , 717215 , 720037 , 724619 , 724841 , 737189 , 742149 , 746994 , 771155 , 782659 , 793704 , 803557 , 804024 , 808526 , 808570 , 809696 , 821262 , 824501 );
Copy