3
12.78 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
679856
513126
578771
591881
759464
720257
527659
704189
558433
579776
633923
633959
389315
638555
585752
634474
606745
530763
644056
814606
651668
505090
711288
605562
733572
447143
720291
489245
725601
749541
496527
733573
517609
544640
630915
578898
589345
445739
468031
533529
530799
651276
603096
720241
460327
560941
449933
720288
603605
808077
445741
523418
577641
683529
498110
580368
567468
720298
605636
606541
558441
426405
804491
634856
593860
614720
578406
445740
391386
649525
627750
530026
569421
]
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 (679856 , 513126 , 578771 , 591881 , 759464 , 720257 , 527659 , 704189 , 558433 , 579776 , 633923 , 633959 , 389315 , 638555 , 585752 , 634474 , 606745 , 530763 , 644056 , 814606 , 651668 , 505090 , 711288 , 605562 , 733572 , 447143 , 720291 , 489245 , 725601 , 749541 , 496527 , 733573 , 517609 , 544640 , 630915 , 578898 , 589345 , 445739 , 468031 , 533529 , 530799 , 651276 , 603096 , 720241 , 460327 , 560941 , 449933 , 720288 , 603605 , 808077 , 445741 , 523418 , 577641 , 683529 , 498110 , 580368 , 567468 , 720298 , 605636 , 606541 , 558441 , 426405 , 804491 , 634856 , 593860 , 614720 , 578406 , 445740 , 391386 , 649525 , 627750 , 530026 , 569421 );
Copy
4
3.16 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
389315
391386
426405
445739
445740
445741
447143
449933
460327
468031
489245
496527
498110
505090
513126
517609
523418
527659
530026
530763
530799
533529
544640
558433
558441
560941
567468
569421
577641
578406
578771
578898
579776
580368
585752
589345
591881
593860
603096
603605
605562
605636
606541
606745
614720
627750
630915
633923
633959
634474
634856
638555
644056
649525
651276
651668
679856
683529
704189
711288
720241
720257
720288
720291
720298
725601
733572
733573
749541
759464
804491
808077
814606
]
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 (389315 , 391386 , 426405 , 445739 , 445740 , 445741 , 447143 , 449933 , 460327 , 468031 , 489245 , 496527 , 498110 , 505090 , 513126 , 517609 , 523418 , 527659 , 530026 , 530763 , 530799 , 533529 , 544640 , 558433 , 558441 , 560941 , 567468 , 569421 , 577641 , 578406 , 578771 , 578898 , 579776 , 580368 , 585752 , 589345 , 591881 , 593860 , 603096 , 603605 , 605562 , 605636 , 606541 , 606745 , 614720 , 627750 , 630915 , 633923 , 633959 , 634474 , 634856 , 638555 , 644056 , 649525 , 651276 , 651668 , 679856 , 683529 , 704189 , 711288 , 720241 , 720257 , 720288 , 720291 , 720298 , 725601 , 733572 , 733573 , 749541 , 759464 , 804491 , 808077 , 814606 );
Copy
5
81.85 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
389315
391386
426405
445739
445740
445741
447143
449933
460327
468031
489245
496527
498110
505090
513126
517609
523418
527659
530026
530763
530799
533529
544640
558433
558441
560941
567468
569421
577641
578406
578771
578898
579776
580368
585752
589345
591881
593860
603096
603605
605562
605636
606541
606745
614720
627750
630915
633923
633959
634474
634856
638555
644056
649525
651276
651668
679856
683529
704189
711288
720241
720257
720288
720291
720298
725601
733572
733573
749541
759464
804491
808077
814606
]
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 (389315 , 391386 , 426405 , 445739 , 445740 , 445741 , 447143 , 449933 , 460327 , 468031 , 489245 , 496527 , 498110 , 505090 , 513126 , 517609 , 523418 , 527659 , 530026 , 530763 , 530799 , 533529 , 544640 , 558433 , 558441 , 560941 , 567468 , 569421 , 577641 , 578406 , 578771 , 578898 , 579776 , 580368 , 585752 , 589345 , 591881 , 593860 , 603096 , 603605 , 605562 , 605636 , 606541 , 606745 , 614720 , 627750 , 630915 , 633923 , 633959 , 634474 , 634856 , 638555 , 644056 , 649525 , 651276 , 651668 , 679856 , 683529 , 704189 , 711288 , 720241 , 720257 , 720288 , 720291 , 720298 , 725601 , 733572 , 733573 , 749541 , 759464 , 804491 , 808077 , 814606 );
Copy