3
15.08 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
424114
441584
484237
426674
445720
441597
496087
61226
564394
500806
470147
424193
510676
447662
472270
467728
455434
444145
400493
391944
457881
513713
491736
552977
400832
483637
579580
509813
439687
524781
516491
527267
457444
421889
439776
421863
447588
439786
470514
633804
510392
439457
474685
478006
479049
447748
418848
421854
453689
427112
422211
562078
421146
602607
426988
424458
458191
578815
466241
443784
484737
422155
755082
490404
388690
513540
456136
599478
464327
524882
599361
438772
514395
521453
]
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 (424114 , 441584 , 484237 , 426674 , 445720 , 441597 , 496087 , 61226 , 564394 , 500806 , 470147 , 424193 , 510676 , 447662 , 472270 , 467728 , 455434 , 444145 , 400493 , 391944 , 457881 , 513713 , 491736 , 552977 , 400832 , 483637 , 579580 , 509813 , 439687 , 524781 , 516491 , 527267 , 457444 , 421889 , 439776 , 421863 , 447588 , 439786 , 470514 , 633804 , 510392 , 439457 , 474685 , 478006 , 479049 , 447748 , 418848 , 421854 , 453689 , 427112 , 422211 , 562078 , 421146 , 602607 , 426988 , 424458 , 458191 , 578815 , 466241 , 443784 , 484737 , 422155 , 755082 , 490404 , 388690 , 513540 , 456136 , 599478 , 464327 , 524882 , 599361 , 438772 , 514395 , 521453 );
Copy
4
2.64 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
61226
388690
391944
400493
400832
418848
421146
421854
421863
421889
422155
422211
424114
424193
424458
426674
426988
427112
438772
439457
439687
439776
439786
441584
441597
443784
444145
445720
447588
447662
447748
453689
455434
456136
457444
457881
458191
464327
466241
467728
470147
470514
472270
474685
478006
479049
483637
484237
484737
490404
491736
496087
500806
509813
510392
510676
513540
513713
514395
516491
521453
524781
524882
527267
552977
562078
564394
578815
579580
599361
599478
602607
633804
755082
]
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 (61226 , 388690 , 391944 , 400493 , 400832 , 418848 , 421146 , 421854 , 421863 , 421889 , 422155 , 422211 , 424114 , 424193 , 424458 , 426674 , 426988 , 427112 , 438772 , 439457 , 439687 , 439776 , 439786 , 441584 , 441597 , 443784 , 444145 , 445720 , 447588 , 447662 , 447748 , 453689 , 455434 , 456136 , 457444 , 457881 , 458191 , 464327 , 466241 , 467728 , 470147 , 470514 , 472270 , 474685 , 478006 , 479049 , 483637 , 484237 , 484737 , 490404 , 491736 , 496087 , 500806 , 509813 , 510392 , 510676 , 513540 , 513713 , 514395 , 516491 , 521453 , 524781 , 524882 , 527267 , 552977 , 562078 , 564394 , 578815 , 579580 , 599361 , 599478 , 602607 , 633804 , 755082 );
Copy
5
87.15 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
61226
388690
391944
400493
400832
418848
421146
421854
421863
421889
422155
422211
424114
424193
424458
426674
426988
427112
438772
439457
439687
439776
439786
441584
441597
443784
444145
445720
447588
447662
447748
453689
455434
456136
457444
457881
458191
464327
466241
467728
470147
470514
472270
474685
478006
479049
483637
484237
484737
490404
491736
496087
500806
509813
510392
510676
513540
513713
514395
516491
521453
524781
524882
527267
552977
562078
564394
578815
579580
599361
599478
602607
633804
755082
]
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 (61226 , 388690 , 391944 , 400493 , 400832 , 418848 , 421146 , 421854 , 421863 , 421889 , 422155 , 422211 , 424114 , 424193 , 424458 , 426674 , 426988 , 427112 , 438772 , 439457 , 439687 , 439776 , 439786 , 441584 , 441597 , 443784 , 444145 , 445720 , 447588 , 447662 , 447748 , 453689 , 455434 , 456136 , 457444 , 457881 , 458191 , 464327 , 466241 , 467728 , 470147 , 470514 , 472270 , 474685 , 478006 , 479049 , 483637 , 484237 , 484737 , 490404 , 491736 , 496087 , 500806 , 509813 , 510392 , 510676 , 513540 , 513713 , 514395 , 516491 , 521453 , 524781 , 524882 , 527267 , 552977 , 562078 , 564394 , 578815 , 579580 , 599361 , 599478 , 602607 , 633804 , 755082 );
Copy