3
7.64 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
613853
816024
821774
710591
777270
599786
815893
687505
816583
461358
756920
777739
516211
789682
803467
771525
809354
478107
790887
406363
562865
779119
407374
821069
647984
581454
696435
710588
449232
528826
521220
820973
605415
422243
576125
618351
401214
676582
463624
499487
789956
815959
814749
486540
519278
459141
483449
490138
790863
561456
573756
621342
476628
812790
696941
498052
527164
478935
525253
502806
404791
586806
562895
497104
534320
513137
428756
514901
482507
]
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 (613853 , 816024 , 821774 , 710591 , 777270 , 599786 , 815893 , 687505 , 816583 , 461358 , 756920 , 777739 , 516211 , 789682 , 803467 , 771525 , 809354 , 478107 , 790887 , 406363 , 562865 , 779119 , 407374 , 821069 , 647984 , 581454 , 696435 , 710588 , 449232 , 528826 , 521220 , 820973 , 605415 , 422243 , 576125 , 618351 , 401214 , 676582 , 463624 , 499487 , 789956 , 815959 , 814749 , 486540 , 519278 , 459141 , 483449 , 490138 , 790863 , 561456 , 573756 , 621342 , 476628 , 812790 , 696941 , 498052 , 527164 , 478935 , 525253 , 502806 , 404791 , 586806 , 562895 , 497104 , 534320 , 513137 , 428756 , 514901 , 482507 );
Copy
4
1.59 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
401214
404791
406363
407374
422243
428756
449232
459141
461358
463624
476628
478107
478935
482507
483449
486540
490138
497104
498052
499487
502806
513137
514901
516211
519278
521220
525253
527164
528826
534320
561456
562865
562895
573756
576125
581454
586806
599786
605415
613853
618351
621342
647984
687505
696435
696941
710588
710591
756920
771525
777270
777739
779119
789682
789956
790863
790887
803467
809354
812790
814749
815893
815959
816583
820973
821069
821774
]
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 (401214 , 404791 , 406363 , 407374 , 422243 , 428756 , 449232 , 459141 , 461358 , 463624 , 476628 , 478107 , 478935 , 482507 , 483449 , 486540 , 490138 , 497104 , 498052 , 499487 , 502806 , 513137 , 514901 , 516211 , 519278 , 521220 , 525253 , 527164 , 528826 , 534320 , 561456 , 562865 , 562895 , 573756 , 576125 , 581454 , 586806 , 599786 , 605415 , 613853 , 618351 , 621342 , 647984 , 687505 , 696435 , 696941 , 710588 , 710591 , 756920 , 771525 , 777270 , 777739 , 779119 , 789682 , 789956 , 790863 , 790887 , 803467 , 809354 , 812790 , 814749 , 815893 , 815959 , 816583 , 820973 , 821069 , 821774 );
Copy
5
96.42 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
401214
404791
406363
407374
422243
428756
449232
459141
461358
463624
476628
478107
478935
482507
483449
486540
490138
497104
498052
499487
502806
513137
514901
516211
519278
521220
525253
527164
528826
534320
561456
562865
562895
573756
576125
581454
586806
599786
605415
613853
618351
621342
647984
687505
696435
696941
710588
710591
756920
771525
777270
777739
779119
789682
789956
790863
790887
803467
809354
812790
814749
815893
815959
816583
820973
821069
821774
]
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 (401214 , 404791 , 406363 , 407374 , 422243 , 428756 , 449232 , 459141 , 461358 , 463624 , 476628 , 478107 , 478935 , 482507 , 483449 , 486540 , 490138 , 497104 , 498052 , 499487 , 502806 , 513137 , 514901 , 516211 , 519278 , 521220 , 525253 , 527164 , 528826 , 534320 , 561456 , 562865 , 562895 , 573756 , 576125 , 581454 , 586806 , 599786 , 605415 , 613853 , 618351 , 621342 , 647984 , 687505 , 696435 , 696941 , 710588 , 710591 , 756920 , 771525 , 777270 , 777739 , 779119 , 789682 , 789956 , 790863 , 790887 , 803467 , 809354 , 812790 , 814749 , 815893 , 815959 , 816583 , 820973 , 821069 , 821774 );
Copy