3
9.79 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
804703
465234
693059
574243
507774
649435
665964
601767
637318
785707
740110
751036
382834
173238
527217
512550
790200
567354
614853
472808
645526
645604
644787
617486
606396
470396
500743
599829
772507
384960
428903
493852
596862
480233
446816
524369
538547
500679
546085
547768
503479
581797
464690
495167
572967
542884
690682
556371
740268
529319
468705
541084
546783
598133
516873
452781
659025
584627
628170
455981
585889
607879
445228
600577
]
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 (804703 , 465234 , 693059 , 574243 , 507774 , 649435 , 665964 , 601767 , 637318 , 785707 , 740110 , 751036 , 382834 , 173238 , 527217 , 512550 , 790200 , 567354 , 614853 , 472808 , 645526 , 645604 , 644787 , 617486 , 606396 , 470396 , 500743 , 599829 , 772507 , 384960 , 428903 , 493852 , 596862 , 480233 , 446816 , 524369 , 538547 , 500679 , 546085 , 547768 , 503479 , 581797 , 464690 , 495167 , 572967 , 542884 , 690682 , 556371 , 740268 , 529319 , 468705 , 541084 , 546783 , 598133 , 516873 , 452781 , 659025 , 584627 , 628170 , 455981 , 585889 , 607879 , 445228 , 600577 );
Copy
4
2.44 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
173238
382834
384960
428903
445228
446816
452781
455981
464690
465234
468705
470396
472808
480233
493852
495167
500679
500743
503479
507774
512550
516873
524369
527217
529319
538547
541084
542884
546085
546783
547768
556371
567354
572967
574243
581797
584627
585889
596862
598133
599829
600577
601767
606396
607879
614853
617486
628170
637318
644787
645526
645604
649435
659025
665964
690682
693059
740110
740268
751036
772507
785707
790200
804703
]
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 (173238 , 382834 , 384960 , 428903 , 445228 , 446816 , 452781 , 455981 , 464690 , 465234 , 468705 , 470396 , 472808 , 480233 , 493852 , 495167 , 500679 , 500743 , 503479 , 507774 , 512550 , 516873 , 524369 , 527217 , 529319 , 538547 , 541084 , 542884 , 546085 , 546783 , 547768 , 556371 , 567354 , 572967 , 574243 , 581797 , 584627 , 585889 , 596862 , 598133 , 599829 , 600577 , 601767 , 606396 , 607879 , 614853 , 617486 , 628170 , 637318 , 644787 , 645526 , 645604 , 649435 , 659025 , 665964 , 690682 , 693059 , 740110 , 740268 , 751036 , 772507 , 785707 , 790200 , 804703 );
Copy
5
123.80 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
173238
382834
384960
428903
445228
446816
452781
455981
464690
465234
468705
470396
472808
480233
493852
495167
500679
500743
503479
507774
512550
516873
524369
527217
529319
538547
541084
542884
546085
546783
547768
556371
567354
572967
574243
581797
584627
585889
596862
598133
599829
600577
601767
606396
607879
614853
617486
628170
637318
644787
645526
645604
649435
659025
665964
690682
693059
740110
740268
751036
772507
785707
790200
804703
]
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 (173238 , 382834 , 384960 , 428903 , 445228 , 446816 , 452781 , 455981 , 464690 , 465234 , 468705 , 470396 , 472808 , 480233 , 493852 , 495167 , 500679 , 500743 , 503479 , 507774 , 512550 , 516873 , 524369 , 527217 , 529319 , 538547 , 541084 , 542884 , 546085 , 546783 , 547768 , 556371 , 567354 , 572967 , 574243 , 581797 , 584627 , 585889 , 596862 , 598133 , 599829 , 600577 , 601767 , 606396 , 607879 , 614853 , 617486 , 628170 , 637318 , 644787 , 645526 , 645604 , 649435 , 659025 , 665964 , 690682 , 693059 , 740110 , 740268 , 751036 , 772507 , 785707 , 790200 , 804703 );
Copy