3
10.26 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
825573
823709
720022
810959
766395
616912
725495
714589
631089
799840
824911
706441
784823
797891
788547
504464
735482
614931
529467
698824
585638
766113
779385
667029
701463
615579
802488
459439
521550
511207
506224
774209
614684
423558
496320
588689
487789
584815
663547
426339
513941
498643
529456
558468
703492
667825
456907
423551
458829
499951
513706
564595
624480
599127
529516
743685
675576
818011
798793
782113
810091
500651
740671
823929
572263
619792
555858
]
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 (825573 , 823709 , 720022 , 810959 , 766395 , 616912 , 725495 , 714589 , 631089 , 799840 , 824911 , 706441 , 784823 , 797891 , 788547 , 504464 , 735482 , 614931 , 529467 , 698824 , 585638 , 766113 , 779385 , 667029 , 701463 , 615579 , 802488 , 459439 , 521550 , 511207 , 506224 , 774209 , 614684 , 423558 , 496320 , 588689 , 487789 , 584815 , 663547 , 426339 , 513941 , 498643 , 529456 , 558468 , 703492 , 667825 , 456907 , 423551 , 458829 , 499951 , 513706 , 564595 , 624480 , 599127 , 529516 , 743685 , 675576 , 818011 , 798793 , 782113 , 810091 , 500651 , 740671 , 823929 , 572263 , 619792 , 555858 );
Copy
4
2.49 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
423551
423558
426339
456907
458829
459439
487789
496320
498643
499951
500651
504464
506224
511207
513706
513941
521550
529456
529467
529516
555858
558468
564595
572263
584815
585638
588689
599127
614684
614931
615579
616912
619792
624480
631089
663547
667029
667825
675576
698824
701463
703492
706441
714589
720022
725495
735482
740671
743685
766113
766395
774209
779385
782113
784823
788547
797891
798793
799840
802488
810091
810959
818011
823709
823929
824911
825573
]
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 (423551 , 423558 , 426339 , 456907 , 458829 , 459439 , 487789 , 496320 , 498643 , 499951 , 500651 , 504464 , 506224 , 511207 , 513706 , 513941 , 521550 , 529456 , 529467 , 529516 , 555858 , 558468 , 564595 , 572263 , 584815 , 585638 , 588689 , 599127 , 614684 , 614931 , 615579 , 616912 , 619792 , 624480 , 631089 , 663547 , 667029 , 667825 , 675576 , 698824 , 701463 , 703492 , 706441 , 714589 , 720022 , 725495 , 735482 , 740671 , 743685 , 766113 , 766395 , 774209 , 779385 , 782113 , 784823 , 788547 , 797891 , 798793 , 799840 , 802488 , 810091 , 810959 , 818011 , 823709 , 823929 , 824911 , 825573 );
Copy
5
80.70 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
423551
423558
426339
456907
458829
459439
487789
496320
498643
499951
500651
504464
506224
511207
513706
513941
521550
529456
529467
529516
555858
558468
564595
572263
584815
585638
588689
599127
614684
614931
615579
616912
619792
624480
631089
663547
667029
667825
675576
698824
701463
703492
706441
714589
720022
725495
735482
740671
743685
766113
766395
774209
779385
782113
784823
788547
797891
798793
799840
802488
810091
810959
818011
823709
823929
824911
825573
]
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 (423551 , 423558 , 426339 , 456907 , 458829 , 459439 , 487789 , 496320 , 498643 , 499951 , 500651 , 504464 , 506224 , 511207 , 513706 , 513941 , 521550 , 529456 , 529467 , 529516 , 555858 , 558468 , 564595 , 572263 , 584815 , 585638 , 588689 , 599127 , 614684 , 614931 , 615579 , 616912 , 619792 , 624480 , 631089 , 663547 , 667029 , 667825 , 675576 , 698824 , 701463 , 703492 , 706441 , 714589 , 720022 , 725495 , 735482 , 740671 , 743685 , 766113 , 766395 , 774209 , 779385 , 782113 , 784823 , 788547 , 797891 , 798793 , 799840 , 802488 , 810091 , 810959 , 818011 , 823709 , 823929 , 824911 , 825573 );
Copy