3
9.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
782776
782771
548074
543645
650489
446992
533550
696865
521223
594980
616400
426440
464243
826759
533430
586026
683054
460976
650810
460975
482573
774156
424870
622746
614942
448053
581501
640685
442587
551912
770607
516975
386698
540360
541509
548879
510555
448412
539086
707974
592763
446142
441822
482609
784287
448058
448054
491442
472917
448036
442280
441757
442957
449301
706933
711275
398955
419840
820147
456383
730975
383643
459471
446090
516979
478829
445414
440966
407011
503619
514149
514746
439626
440581
478981
]
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 (782776 , 782771 , 548074 , 543645 , 650489 , 446992 , 533550 , 696865 , 521223 , 594980 , 616400 , 426440 , 464243 , 826759 , 533430 , 586026 , 683054 , 460976 , 650810 , 460975 , 482573 , 774156 , 424870 , 622746 , 614942 , 448053 , 581501 , 640685 , 442587 , 551912 , 770607 , 516975 , 386698 , 540360 , 541509 , 548879 , 510555 , 448412 , 539086 , 707974 , 592763 , 446142 , 441822 , 482609 , 784287 , 448058 , 448054 , 491442 , 472917 , 448036 , 442280 , 441757 , 442957 , 449301 , 706933 , 711275 , 398955 , 419840 , 820147 , 456383 , 730975 , 383643 , 459471 , 446090 , 516979 , 478829 , 445414 , 440966 , 407011 , 503619 , 514149 , 514746 , 439626 , 440581 , 478981 );
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
383643
386698
398955
407011
419840
424870
426440
439626
440581
440966
441757
441822
442280
442587
442957
445414
446090
446142
446992
448036
448053
448054
448058
448412
449301
456383
459471
460975
460976
464243
472917
478829
478981
482573
482609
491442
503619
510555
514149
514746
516975
516979
521223
533430
533550
539086
540360
541509
543645
548074
548879
551912
581501
586026
592763
594980
614942
616400
622746
640685
650489
650810
683054
696865
706933
707974
711275
730975
770607
774156
782771
782776
784287
820147
826759
]
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 (383643 , 386698 , 398955 , 407011 , 419840 , 424870 , 426440 , 439626 , 440581 , 440966 , 441757 , 441822 , 442280 , 442587 , 442957 , 445414 , 446090 , 446142 , 446992 , 448036 , 448053 , 448054 , 448058 , 448412 , 449301 , 456383 , 459471 , 460975 , 460976 , 464243 , 472917 , 478829 , 478981 , 482573 , 482609 , 491442 , 503619 , 510555 , 514149 , 514746 , 516975 , 516979 , 521223 , 533430 , 533550 , 539086 , 540360 , 541509 , 543645 , 548074 , 548879 , 551912 , 581501 , 586026 , 592763 , 594980 , 614942 , 616400 , 622746 , 640685 , 650489 , 650810 , 683054 , 696865 , 706933 , 707974 , 711275 , 730975 , 770607 , 774156 , 782771 , 782776 , 784287 , 820147 , 826759 );
Copy
5
81.66 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
383643
386698
398955
407011
419840
424870
426440
439626
440581
440966
441757
441822
442280
442587
442957
445414
446090
446142
446992
448036
448053
448054
448058
448412
449301
456383
459471
460975
460976
464243
472917
478829
478981
482573
482609
491442
503619
510555
514149
514746
516975
516979
521223
533430
533550
539086
540360
541509
543645
548074
548879
551912
581501
586026
592763
594980
614942
616400
622746
640685
650489
650810
683054
696865
706933
707974
711275
730975
770607
774156
782771
782776
784287
820147
826759
]
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 (383643 , 386698 , 398955 , 407011 , 419840 , 424870 , 426440 , 439626 , 440581 , 440966 , 441757 , 441822 , 442280 , 442587 , 442957 , 445414 , 446090 , 446142 , 446992 , 448036 , 448053 , 448054 , 448058 , 448412 , 449301 , 456383 , 459471 , 460975 , 460976 , 464243 , 472917 , 478829 , 478981 , 482573 , 482609 , 491442 , 503619 , 510555 , 514149 , 514746 , 516975 , 516979 , 521223 , 533430 , 533550 , 539086 , 540360 , 541509 , 543645 , 548074 , 548879 , 551912 , 581501 , 586026 , 592763 , 594980 , 614942 , 616400 , 622746 , 640685 , 650489 , 650810 , 683054 , 696865 , 706933 , 707974 , 711275 , 730975 , 770607 , 774156 , 782771 , 782776 , 784287 , 820147 , 826759 );
Copy