4
12.93 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
494290
491385
383075
405056
405848
434724
465224
486674
495126
399388
404240
457078
497743
497886
512830
604478
416820
468637
489998
494289
564078
429775
466552
417897
461624
510270
562108
154410
429088
420190
420139
448215
450224
465025
468482
552643
576346
404273
416992
518467
496900
500312
613836
406308
414357
420192
415936
420695
446198
557526
451563
470291
480429
478973
416166
381752
414075
495752
497870
567141
522138
512447
529794
543881
542548
609922
]
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 (494290 , 491385 , 383075 , 405056 , 405848 , 434724 , 465224 , 486674 , 495126 , 399388 , 404240 , 457078 , 497743 , 497886 , 512830 , 604478 , 416820 , 468637 , 489998 , 494289 , 564078 , 429775 , 466552 , 417897 , 461624 , 510270 , 562108 , 154410 , 429088 , 420190 , 420139 , 448215 , 450224 , 465025 , 468482 , 552643 , 576346 , 404273 , 416992 , 518467 , 496900 , 500312 , 613836 , 406308 , 414357 , 420192 , 415936 , 420695 , 446198 , 557526 , 451563 , 470291 , 480429 , 478973 , 416166 , 381752 , 414075 , 495752 , 497870 , 567141 , 522138 , 512447 , 529794 , 543881 , 542548 , 609922 );
Copy
5
2.33 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
383075
399388
404240
404273
405056
405848
406308
414075
414357
415936
416166
416820
416992
417897
420139
420190
420192
420695
429088
429775
434724
446198
448215
450224
451563
457078
461624
465025
465224
466552
468482
468637
470291
478973
480429
486674
489998
491385
494289
494290
495126
495752
496900
497743
497870
497886
500312
510270
512447
512830
518467
522138
529794
542548
543881
552643
557526
562108
564078
567141
576346
604478
609922
613836
]
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 , 383075 , 399388 , 404240 , 404273 , 405056 , 405848 , 406308 , 414075 , 414357 , 415936 , 416166 , 416820 , 416992 , 417897 , 420139 , 420190 , 420192 , 420695 , 429088 , 429775 , 434724 , 446198 , 448215 , 450224 , 451563 , 457078 , 461624 , 465025 , 465224 , 466552 , 468482 , 468637 , 470291 , 478973 , 480429 , 486674 , 489998 , 491385 , 494289 , 494290 , 495126 , 495752 , 496900 , 497743 , 497870 , 497886 , 500312 , 510270 , 512447 , 512830 , 518467 , 522138 , 529794 , 542548 , 543881 , 552643 , 557526 , 562108 , 564078 , 567141 , 576346 , 604478 , 609922 , 613836 );
Copy
6
126.89 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
383075
399388
404240
404273
405056
405848
406308
414075
414357
415936
416166
416820
416992
417897
420139
420190
420192
420695
429088
429775
434724
446198
448215
450224
451563
457078
461624
465025
465224
466552
468482
468637
470291
478973
480429
486674
489998
491385
494289
494290
495126
495752
496900
497743
497870
497886
500312
510270
512447
512830
518467
522138
529794
542548
543881
552643
557526
562108
564078
567141
576346
604478
609922
613836
]
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 , 383075 , 399388 , 404240 , 404273 , 405056 , 405848 , 406308 , 414075 , 414357 , 415936 , 416166 , 416820 , 416992 , 417897 , 420139 , 420190 , 420192 , 420695 , 429088 , 429775 , 434724 , 446198 , 448215 , 450224 , 451563 , 457078 , 461624 , 465025 , 465224 , 466552 , 468482 , 468637 , 470291 , 478973 , 480429 , 486674 , 489998 , 491385 , 494289 , 494290 , 495126 , 495752 , 496900 , 497743 , 497870 , 497886 , 500312 , 510270 , 512447 , 512830 , 518467 , 522138 , 529794 , 542548 , 543881 , 552643 , 557526 , 562108 , 564078 , 567141 , 576346 , 604478 , 609922 , 613836 );
Copy