3
9.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
352163
634608
793195
443115
796761
714105
522869
532384
631503
590652
585623
638756
483189
804964
460432
523893
477412
525867
567600
738674
528362
712823
624753
496686
665920
664459
716675
424000
526344
520584
511755
523450
466907
495689
506297
548034
688010
561024
444214
515905
486450
517418
527101
520730
567749
447124
516819
566340
581882
466572
470527
448713
535282
385535
446369
515508
690093
594886
508662
462381
543874
520737
492256
494081
534376
554392
]
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 (352163 , 634608 , 793195 , 443115 , 796761 , 714105 , 522869 , 532384 , 631503 , 590652 , 585623 , 638756 , 483189 , 804964 , 460432 , 523893 , 477412 , 525867 , 567600 , 738674 , 528362 , 712823 , 624753 , 496686 , 665920 , 664459 , 716675 , 424000 , 526344 , 520584 , 511755 , 523450 , 466907 , 495689 , 506297 , 548034 , 688010 , 561024 , 444214 , 515905 , 486450 , 517418 , 527101 , 520730 , 567749 , 447124 , 516819 , 566340 , 581882 , 466572 , 470527 , 448713 , 535282 , 385535 , 446369 , 515508 , 690093 , 594886 , 508662 , 462381 , 543874 , 520737 , 492256 , 494081 , 534376 , 554392 );
Copy
4
2.02 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
352163
385535
424000
443115
444214
446369
447124
448713
460432
462381
466572
466907
470527
477412
483189
486450
492256
494081
495689
496686
506297
508662
511755
515508
515905
516819
517418
520584
520730
520737
522869
523450
523893
525867
526344
527101
528362
532384
534376
535282
543874
548034
554392
561024
566340
567600
567749
581882
585623
590652
594886
624753
631503
634608
638756
664459
665920
688010
690093
712823
714105
716675
738674
793195
796761
804964
]
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 (352163 , 385535 , 424000 , 443115 , 444214 , 446369 , 447124 , 448713 , 460432 , 462381 , 466572 , 466907 , 470527 , 477412 , 483189 , 486450 , 492256 , 494081 , 495689 , 496686 , 506297 , 508662 , 511755 , 515508 , 515905 , 516819 , 517418 , 520584 , 520730 , 520737 , 522869 , 523450 , 523893 , 525867 , 526344 , 527101 , 528362 , 532384 , 534376 , 535282 , 543874 , 548034 , 554392 , 561024 , 566340 , 567600 , 567749 , 581882 , 585623 , 590652 , 594886 , 624753 , 631503 , 634608 , 638756 , 664459 , 665920 , 688010 , 690093 , 712823 , 714105 , 716675 , 738674 , 793195 , 796761 , 804964 );
Copy
5
104.20 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
352163
385535
424000
443115
444214
446369
447124
448713
460432
462381
466572
466907
470527
477412
483189
486450
492256
494081
495689
496686
506297
508662
511755
515508
515905
516819
517418
520584
520730
520737
522869
523450
523893
525867
526344
527101
528362
532384
534376
535282
543874
548034
554392
561024
566340
567600
567749
581882
585623
590652
594886
624753
631503
634608
638756
664459
665920
688010
690093
712823
714105
716675
738674
793195
796761
804964
]
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 (352163 , 385535 , 424000 , 443115 , 444214 , 446369 , 447124 , 448713 , 460432 , 462381 , 466572 , 466907 , 470527 , 477412 , 483189 , 486450 , 492256 , 494081 , 495689 , 496686 , 506297 , 508662 , 511755 , 515508 , 515905 , 516819 , 517418 , 520584 , 520730 , 520737 , 522869 , 523450 , 523893 , 525867 , 526344 , 527101 , 528362 , 532384 , 534376 , 535282 , 543874 , 548034 , 554392 , 561024 , 566340 , 567600 , 567749 , 581882 , 585623 , 590652 , 594886 , 624753 , 631503 , 634608 , 638756 , 664459 , 665920 , 688010 , 690093 , 712823 , 714105 , 716675 , 738674 , 793195 , 796761 , 804964 );
Copy