3
14.60 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
404240
457078
406290
405070
497743
497886
604478
540141
416820
468637
494289
564078
420216
382355
466552
447124
417897
461624
510270
562108
154410
404622
429088
443389
420190
420139
451620
448215
450224
465025
468482
552643
576346
404273
416992
518467
496900
500312
613836
406308
414357
420192
415936
420695
446198
449595
446167
557526
451563
480429
425351
478973
416166
381752
468035
414075
495752
497870
567141
522138
512447
529794
543881
542548
609922
643316
]
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 (404240 , 457078 , 406290 , 405070 , 497743 , 497886 , 604478 , 540141 , 416820 , 468637 , 494289 , 564078 , 420216 , 382355 , 466552 , 447124 , 417897 , 461624 , 510270 , 562108 , 154410 , 404622 , 429088 , 443389 , 420190 , 420139 , 451620 , 448215 , 450224 , 465025 , 468482 , 552643 , 576346 , 404273 , 416992 , 518467 , 496900 , 500312 , 613836 , 406308 , 414357 , 420192 , 415936 , 420695 , 446198 , 449595 , 446167 , 557526 , 451563 , 480429 , 425351 , 478973 , 416166 , 381752 , 468035 , 414075 , 495752 , 497870 , 567141 , 522138 , 512447 , 529794 , 543881 , 542548 , 609922 , 643316 );
Copy
4
3.23 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
154410
381752
382355
404240
404273
404622
405070
406290
406308
414075
414357
415936
416166
416820
416992
417897
420139
420190
420192
420216
420695
425351
429088
443389
446167
446198
447124
448215
449595
450224
451563
451620
457078
461624
465025
466552
468035
468482
468637
478973
480429
494289
495752
496900
497743
497870
497886
500312
510270
512447
518467
522138
529794
540141
542548
543881
552643
557526
562108
564078
567141
576346
604478
609922
613836
643316
]
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 (154410 , 381752 , 382355 , 404240 , 404273 , 404622 , 405070 , 406290 , 406308 , 414075 , 414357 , 415936 , 416166 , 416820 , 416992 , 417897 , 420139 , 420190 , 420192 , 420216 , 420695 , 425351 , 429088 , 443389 , 446167 , 446198 , 447124 , 448215 , 449595 , 450224 , 451563 , 451620 , 457078 , 461624 , 465025 , 466552 , 468035 , 468482 , 468637 , 478973 , 480429 , 494289 , 495752 , 496900 , 497743 , 497870 , 497886 , 500312 , 510270 , 512447 , 518467 , 522138 , 529794 , 540141 , 542548 , 543881 , 552643 , 557526 , 562108 , 564078 , 567141 , 576346 , 604478 , 609922 , 613836 , 643316 );
Copy
5
95.59 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
154410
381752
382355
404240
404273
404622
405070
406290
406308
414075
414357
415936
416166
416820
416992
417897
420139
420190
420192
420216
420695
425351
429088
443389
446167
446198
447124
448215
449595
450224
451563
451620
457078
461624
465025
466552
468035
468482
468637
478973
480429
494289
495752
496900
497743
497870
497886
500312
510270
512447
518467
522138
529794
540141
542548
543881
552643
557526
562108
564078
567141
576346
604478
609922
613836
643316
]
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 (154410 , 381752 , 382355 , 404240 , 404273 , 404622 , 405070 , 406290 , 406308 , 414075 , 414357 , 415936 , 416166 , 416820 , 416992 , 417897 , 420139 , 420190 , 420192 , 420216 , 420695 , 425351 , 429088 , 443389 , 446167 , 446198 , 447124 , 448215 , 449595 , 450224 , 451563 , 451620 , 457078 , 461624 , 465025 , 466552 , 468035 , 468482 , 468637 , 478973 , 480429 , 494289 , 495752 , 496900 , 497743 , 497870 , 497886 , 500312 , 510270 , 512447 , 518467 , 522138 , 529794 , 540141 , 542548 , 543881 , 552643 , 557526 , 562108 , 564078 , 567141 , 576346 , 604478 , 609922 , 613836 , 643316 );
Copy