4
15.23 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
766875
581718
705961
783803
793738
773489
644980
793711
766378
530529
811942
749057
759910
705720
604682
822168
815026
676159
445832
776518
560100
674662
806123
598782
536819
532776
491413
598286
605474
808467
826425
823064
823133
822348
823166
773078
822121
796854
821675
822056
784516
761174
822991
408330
403139
817305
515795
697175
630257
733549
726954
461796
599981
383650
521559
442238
471141
503129
790884
457497
460479
619843
445563
560219
608549
471165
]
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 (766875 , 581718 , 705961 , 783803 , 793738 , 773489 , 644980 , 793711 , 766378 , 530529 , 811942 , 749057 , 759910 , 705720 , 604682 , 822168 , 815026 , 676159 , 445832 , 776518 , 560100 , 674662 , 806123 , 598782 , 536819 , 532776 , 491413 , 598286 , 605474 , 808467 , 826425 , 823064 , 823133 , 822348 , 823166 , 773078 , 822121 , 796854 , 821675 , 822056 , 784516 , 761174 , 822991 , 408330 , 403139 , 817305 , 515795 , 697175 , 630257 , 733549 , 726954 , 461796 , 599981 , 383650 , 521559 , 442238 , 471141 , 503129 , 790884 , 457497 , 460479 , 619843 , 445563 , 560219 , 608549 , 471165 );
Copy
5
2.24 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
383650
403139
408330
442238
445563
445832
457497
460479
461796
471141
471165
491413
503129
515795
521559
530529
532776
536819
560100
560219
581718
598286
598782
599981
604682
605474
608549
619843
630257
644980
674662
676159
697175
705720
705961
726954
733549
749057
759910
761174
766378
766875
773078
773489
776518
783803
784516
790884
793711
793738
796854
806123
808467
811942
815026
817305
821675
822121
822168
822991
823133
823166
826425
]
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 (383650 , 403139 , 408330 , 442238 , 445563 , 445832 , 457497 , 460479 , 461796 , 471141 , 471165 , 491413 , 503129 , 515795 , 521559 , 530529 , 532776 , 536819 , 560100 , 560219 , 581718 , 598286 , 598782 , 599981 , 604682 , 605474 , 608549 , 619843 , 630257 , 644980 , 674662 , 676159 , 697175 , 705720 , 705961 , 726954 , 733549 , 749057 , 759910 , 761174 , 766378 , 766875 , 773078 , 773489 , 776518 , 783803 , 784516 , 790884 , 793711 , 793738 , 796854 , 806123 , 808467 , 811942 , 815026 , 817305 , 821675 , 822121 , 822168 , 822991 , 823133 , 823166 , 826425 );
Copy
6
69.23 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
383650
403139
408330
442238
445563
445832
457497
460479
461796
471141
471165
491413
503129
515795
521559
530529
532776
536819
560100
560219
581718
598286
598782
599981
604682
605474
608549
619843
630257
644980
674662
676159
697175
705720
705961
726954
733549
749057
759910
761174
766378
766875
773078
773489
776518
783803
784516
790884
793711
793738
796854
806123
808467
811942
815026
817305
821675
822121
822168
822991
823133
823166
826425
]
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 (383650 , 403139 , 408330 , 442238 , 445563 , 445832 , 457497 , 460479 , 461796 , 471141 , 471165 , 491413 , 503129 , 515795 , 521559 , 530529 , 532776 , 536819 , 560100 , 560219 , 581718 , 598286 , 598782 , 599981 , 604682 , 605474 , 608549 , 619843 , 630257 , 644980 , 674662 , 676159 , 697175 , 705720 , 705961 , 726954 , 733549 , 749057 , 759910 , 761174 , 766378 , 766875 , 773078 , 773489 , 776518 , 783803 , 784516 , 790884 , 793711 , 793738 , 796854 , 806123 , 808467 , 811942 , 815026 , 817305 , 821675 , 822121 , 822168 , 822991 , 823133 , 823166 , 826425 );
Copy