3
11.69 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
728967
736425
752876
759653
720607
427149
425395
191189
450779
524395
567162
515455
419174
462362
450567
485897
487575
499341
463540
576117
581988
558318
560320
571322
600320
628823
594536
774563
731037
474910
428104
437450
411471
474813
417126
455019
471772
492115
717182
198179
419147
517169
510834
548643
594525
423709
480806
502778
517998
501667
528873
498435
527978
443563
558566
575140
445052
459381
452673
429978
452681
463409
504423
504492
679004
519179
524887
530739
565201
553096
518739
455943
593193
516025
519013
]
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 (728967 , 736425 , 752876 , 759653 , 720607 , 427149 , 425395 , 191189 , 450779 , 524395 , 567162 , 515455 , 419174 , 462362 , 450567 , 485897 , 487575 , 499341 , 463540 , 576117 , 581988 , 558318 , 560320 , 571322 , 600320 , 628823 , 594536 , 774563 , 731037 , 474910 , 428104 , 437450 , 411471 , 474813 , 417126 , 455019 , 471772 , 492115 , 717182 , 198179 , 419147 , 517169 , 510834 , 548643 , 594525 , 423709 , 480806 , 502778 , 517998 , 501667 , 528873 , 498435 , 527978 , 443563 , 558566 , 575140 , 445052 , 459381 , 452673 , 429978 , 452681 , 463409 , 504423 , 504492 , 679004 , 519179 , 524887 , 530739 , 565201 , 553096 , 518739 , 455943 , 593193 , 516025 , 519013 );
Copy
4
2.48 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
191189
198179
411471
417126
419147
419174
423709
425395
427149
428104
429978
437450
443563
445052
450567
450779
452673
452681
455019
455943
459381
462362
463409
463540
471772
474813
474910
480806
485897
487575
492115
498435
499341
501667
502778
504423
504492
510834
515455
516025
517169
517998
518739
519013
519179
524395
524887
527978
528873
530739
548643
553096
558318
558566
560320
565201
567162
571322
575140
576117
581988
593193
594525
594536
600320
628823
679004
717182
720607
728967
731037
736425
752876
759653
774563
]
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 (191189 , 198179 , 411471 , 417126 , 419147 , 419174 , 423709 , 425395 , 427149 , 428104 , 429978 , 437450 , 443563 , 445052 , 450567 , 450779 , 452673 , 452681 , 455019 , 455943 , 459381 , 462362 , 463409 , 463540 , 471772 , 474813 , 474910 , 480806 , 485897 , 487575 , 492115 , 498435 , 499341 , 501667 , 502778 , 504423 , 504492 , 510834 , 515455 , 516025 , 517169 , 517998 , 518739 , 519013 , 519179 , 524395 , 524887 , 527978 , 528873 , 530739 , 548643 , 553096 , 558318 , 558566 , 560320 , 565201 , 567162 , 571322 , 575140 , 576117 , 581988 , 593193 , 594525 , 594536 , 600320 , 628823 , 679004 , 717182 , 720607 , 728967 , 731037 , 736425 , 752876 , 759653 , 774563 );
Copy
5
98.38 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
191189
198179
411471
417126
419147
419174
423709
425395
427149
428104
429978
437450
443563
445052
450567
450779
452673
452681
455019
455943
459381
462362
463409
463540
471772
474813
474910
480806
485897
487575
492115
498435
499341
501667
502778
504423
504492
510834
515455
516025
517169
517998
518739
519013
519179
524395
524887
527978
528873
530739
548643
553096
558318
558566
560320
565201
567162
571322
575140
576117
581988
593193
594525
594536
600320
628823
679004
717182
720607
728967
731037
736425
752876
759653
774563
]
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 (191189 , 198179 , 411471 , 417126 , 419147 , 419174 , 423709 , 425395 , 427149 , 428104 , 429978 , 437450 , 443563 , 445052 , 450567 , 450779 , 452673 , 452681 , 455019 , 455943 , 459381 , 462362 , 463409 , 463540 , 471772 , 474813 , 474910 , 480806 , 485897 , 487575 , 492115 , 498435 , 499341 , 501667 , 502778 , 504423 , 504492 , 510834 , 515455 , 516025 , 517169 , 517998 , 518739 , 519013 , 519179 , 524395 , 524887 , 527978 , 528873 , 530739 , 548643 , 553096 , 558318 , 558566 , 560320 , 565201 , 567162 , 571322 , 575140 , 576117 , 581988 , 593193 , 594525 , 594536 , 600320 , 628823 , 679004 , 717182 , 720607 , 728967 , 731037 , 736425 , 752876 , 759653 , 774563 );
Copy