3
10.61 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
538971
498563
479936
540944
558347
552355
573938
581622
589795
601161
589563
590102
621171
752661
397349
114767
441833
466435
405175
427882
478674
487711
524569
520837
522523
444400
409894
452195
530039
510972
518364
498110
498417
503385
515523
577685
603053
613508
790218
477772
521045
486869
489963
498402
526221
521412
520838
483851
581997
421151
493464
498014
503405
510169
629045
621160
545300
553272
613819
484299
512176
489980
588039
516227
494081
479196
521843
]
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 (538971 , 498563 , 479936 , 540944 , 558347 , 552355 , 573938 , 581622 , 589795 , 601161 , 589563 , 590102 , 621171 , 752661 , 397349 , 114767 , 441833 , 466435 , 405175 , 427882 , 478674 , 487711 , 524569 , 520837 , 522523 , 444400 , 409894 , 452195 , 530039 , 510972 , 518364 , 498110 , 498417 , 503385 , 515523 , 577685 , 603053 , 613508 , 790218 , 477772 , 521045 , 486869 , 489963 , 498402 , 526221 , 521412 , 520838 , 483851 , 581997 , 421151 , 493464 , 498014 , 503405 , 510169 , 629045 , 621160 , 545300 , 553272 , 613819 , 484299 , 512176 , 489980 , 588039 , 516227 , 494081 , 479196 , 521843 );
Copy
4
2.00 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
114767
397349
405175
409894
421151
427882
441833
444400
452195
466435
477772
478674
479196
479936
483851
484299
486869
487711
489963
489980
493464
494081
498014
498110
498402
498417
498563
503385
503405
510169
510972
512176
515523
516227
518364
520837
520838
521045
521412
521843
522523
524569
526221
530039
538971
540944
545300
552355
553272
558347
573938
577685
581622
581997
588039
589563
589795
590102
601161
603053
613508
613819
621160
621171
629045
752661
790218
]
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 (114767 , 397349 , 405175 , 409894 , 421151 , 427882 , 441833 , 444400 , 452195 , 466435 , 477772 , 478674 , 479196 , 479936 , 483851 , 484299 , 486869 , 487711 , 489963 , 489980 , 493464 , 494081 , 498014 , 498110 , 498402 , 498417 , 498563 , 503385 , 503405 , 510169 , 510972 , 512176 , 515523 , 516227 , 518364 , 520837 , 520838 , 521045 , 521412 , 521843 , 522523 , 524569 , 526221 , 530039 , 538971 , 540944 , 545300 , 552355 , 553272 , 558347 , 573938 , 577685 , 581622 , 581997 , 588039 , 589563 , 589795 , 590102 , 601161 , 603053 , 613508 , 613819 , 621160 , 621171 , 629045 , 752661 , 790218 );
Copy
5
127.46 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
114767
397349
405175
409894
421151
427882
441833
444400
452195
466435
477772
478674
479196
479936
483851
484299
486869
487711
489963
489980
493464
494081
498014
498110
498402
498417
498563
503385
503405
510169
510972
512176
515523
516227
518364
520837
520838
521045
521412
521843
522523
524569
526221
530039
538971
540944
545300
552355
553272
558347
573938
577685
581622
581997
588039
589563
589795
590102
601161
603053
613508
613819
621160
621171
629045
752661
790218
]
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 (114767 , 397349 , 405175 , 409894 , 421151 , 427882 , 441833 , 444400 , 452195 , 466435 , 477772 , 478674 , 479196 , 479936 , 483851 , 484299 , 486869 , 487711 , 489963 , 489980 , 493464 , 494081 , 498014 , 498110 , 498402 , 498417 , 498563 , 503385 , 503405 , 510169 , 510972 , 512176 , 515523 , 516227 , 518364 , 520837 , 520838 , 521045 , 521412 , 521843 , 522523 , 524569 , 526221 , 530039 , 538971 , 540944 , 545300 , 552355 , 553272 , 558347 , 573938 , 577685 , 581622 , 581997 , 588039 , 589563 , 589795 , 590102 , 601161 , 603053 , 613508 , 613819 , 621160 , 621171 , 629045 , 752661 , 790218 );
Copy