3
9.74 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
598043
493793
568211
29148
537997
401883
537774
573351
30841
529810
652954
669545
598728
412515
415894
534066
568271
582735
597085
621073
793115
795407
552235
597825
428847
428848
428903
454799
477222
568262
598044
428932
529001
519646
388803
527920
453223
452903
453820
488789
535916
580230
700257
598809
600125
598469
758648
448579
434900
480203
529149
420434
446497
469054
453208
553517
700250
595867
597043
456190
480428
452897
430261
571193
446745
633163
]
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 (598043 , 493793 , 568211 , 29148 , 537997 , 401883 , 537774 , 573351 , 30841 , 529810 , 652954 , 669545 , 598728 , 412515 , 415894 , 534066 , 568271 , 582735 , 597085 , 621073 , 793115 , 795407 , 552235 , 597825 , 428847 , 428848 , 428903 , 454799 , 477222 , 568262 , 598044 , 428932 , 529001 , 519646 , 388803 , 527920 , 453223 , 452903 , 453820 , 488789 , 535916 , 580230 , 700257 , 598809 , 600125 , 598469 , 758648 , 448579 , 434900 , 480203 , 529149 , 420434 , 446497 , 469054 , 453208 , 553517 , 700250 , 595867 , 597043 , 456190 , 480428 , 452897 , 430261 , 571193 , 446745 , 633163 );
Copy
4
2.52 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
29148
30841
388803
401883
412515
415894
420434
428847
428848
428903
428932
430261
434900
446497
446745
448579
452897
452903
453208
453223
453820
454799
456190
469054
477222
480203
480428
488789
493793
519646
527920
529001
529149
529810
534066
535916
537774
537997
552235
553517
568211
568262
568271
571193
573351
580230
582735
595867
597043
597085
597825
598043
598044
598469
598728
598809
600125
621073
633163
652954
669545
700250
700257
758648
793115
795407
]
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 (29148 , 30841 , 388803 , 401883 , 412515 , 415894 , 420434 , 428847 , 428848 , 428903 , 428932 , 430261 , 434900 , 446497 , 446745 , 448579 , 452897 , 452903 , 453208 , 453223 , 453820 , 454799 , 456190 , 469054 , 477222 , 480203 , 480428 , 488789 , 493793 , 519646 , 527920 , 529001 , 529149 , 529810 , 534066 , 535916 , 537774 , 537997 , 552235 , 553517 , 568211 , 568262 , 568271 , 571193 , 573351 , 580230 , 582735 , 595867 , 597043 , 597085 , 597825 , 598043 , 598044 , 598469 , 598728 , 598809 , 600125 , 621073 , 633163 , 652954 , 669545 , 700250 , 700257 , 758648 , 793115 , 795407 );
Copy
5
114.97 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
29148
30841
388803
401883
412515
415894
420434
428847
428848
428903
428932
430261
434900
446497
446745
448579
452897
452903
453208
453223
453820
454799
456190
469054
477222
480203
480428
488789
493793
519646
527920
529001
529149
529810
534066
535916
537774
537997
552235
553517
568211
568262
568271
571193
573351
580230
582735
595867
597043
597085
597825
598043
598044
598469
598728
598809
600125
621073
633163
652954
669545
700250
700257
758648
793115
795407
]
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 (29148 , 30841 , 388803 , 401883 , 412515 , 415894 , 420434 , 428847 , 428848 , 428903 , 428932 , 430261 , 434900 , 446497 , 446745 , 448579 , 452897 , 452903 , 453208 , 453223 , 453820 , 454799 , 456190 , 469054 , 477222 , 480203 , 480428 , 488789 , 493793 , 519646 , 527920 , 529001 , 529149 , 529810 , 534066 , 535916 , 537774 , 537997 , 552235 , 553517 , 568211 , 568262 , 568271 , 571193 , 573351 , 580230 , 582735 , 595867 , 597043 , 597085 , 597825 , 598043 , 598044 , 598469 , 598728 , 598809 , 600125 , 621073 , 633163 , 652954 , 669545 , 700250 , 700257 , 758648 , 793115 , 795407 );
Copy