3
13.68 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
555963
561507
566580
580612
620395
626066
744912
760736
411169
462897
521353
523520
523954
527360
528151
491641
512652
533499
506693
523960
395676
492805
461368
481914
525947
518501
503299
557571
562067
564719
568307
749646
447079
525836
513503
815600
456633
518948
568371
553302
552444
580335
635222
625164
400995
426203
513061
529229
555991
608686
808526
492604
523401
573309
466241
568305
583553
588294
801907
509135
624150
520232
427174
]
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 (555963 , 561507 , 566580 , 580612 , 620395 , 626066 , 744912 , 760736 , 411169 , 462897 , 521353 , 523520 , 523954 , 527360 , 528151 , 491641 , 512652 , 533499 , 506693 , 523960 , 395676 , 492805 , 461368 , 481914 , 525947 , 518501 , 503299 , 557571 , 562067 , 564719 , 568307 , 749646 , 447079 , 525836 , 513503 , 815600 , 456633 , 518948 , 568371 , 553302 , 552444 , 580335 , 635222 , 625164 , 400995 , 426203 , 513061 , 529229 , 555991 , 608686 , 808526 , 492604 , 523401 , 573309 , 466241 , 568305 , 583553 , 588294 , 801907 , 509135 , 624150 , 520232 , 427174 );
Copy
4
4.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
395676
400995
411169
426203
427174
447079
456633
461368
462897
466241
481914
491641
492604
492805
503299
506693
509135
512652
513061
513503
518501
518948
520232
521353
523401
523520
523954
523960
525836
525947
527360
528151
529229
533499
552444
553302
555963
555991
557571
561507
562067
564719
566580
568305
568307
568371
573309
580335
580612
583553
588294
608686
620395
624150
625164
626066
635222
744912
749646
760736
801907
808526
815600
]
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 (395676 , 400995 , 411169 , 426203 , 427174 , 447079 , 456633 , 461368 , 462897 , 466241 , 481914 , 491641 , 492604 , 492805 , 503299 , 506693 , 509135 , 512652 , 513061 , 513503 , 518501 , 518948 , 520232 , 521353 , 523401 , 523520 , 523954 , 523960 , 525836 , 525947 , 527360 , 528151 , 529229 , 533499 , 552444 , 553302 , 555963 , 555991 , 557571 , 561507 , 562067 , 564719 , 566580 , 568305 , 568307 , 568371 , 573309 , 580335 , 580612 , 583553 , 588294 , 608686 , 620395 , 624150 , 625164 , 626066 , 635222 , 744912 , 749646 , 760736 , 801907 , 808526 , 815600 );
Copy
5
74.52 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
395676
400995
411169
426203
427174
447079
456633
461368
462897
466241
481914
491641
492604
492805
503299
506693
509135
512652
513061
513503
518501
518948
520232
521353
523401
523520
523954
523960
525836
525947
527360
528151
529229
533499
552444
553302
555963
555991
557571
561507
562067
564719
566580
568305
568307
568371
573309
580335
580612
583553
588294
608686
620395
624150
625164
626066
635222
744912
749646
760736
801907
808526
815600
]
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 (395676 , 400995 , 411169 , 426203 , 427174 , 447079 , 456633 , 461368 , 462897 , 466241 , 481914 , 491641 , 492604 , 492805 , 503299 , 506693 , 509135 , 512652 , 513061 , 513503 , 518501 , 518948 , 520232 , 521353 , 523401 , 523520 , 523954 , 523960 , 525836 , 525947 , 527360 , 528151 , 529229 , 533499 , 552444 , 553302 , 555963 , 555991 , 557571 , 561507 , 562067 , 564719 , 566580 , 568305 , 568307 , 568371 , 573309 , 580335 , 580612 , 583553 , 588294 , 608686 , 620395 , 624150 , 625164 , 626066 , 635222 , 744912 , 749646 , 760736 , 801907 , 808526 , 815600 );
Copy