3
14.35 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
566422
588642
463098
525702
406698
524527
707889
422463
494567
458031
519261
662896
590809
466355
622351
522556
639044
443926
405961
421890
538360
551130
584063
593868
596622
544528
510398
796430
548751
442673
464368
487550
550667
576859
590469
603002
421871
422044
466065
476797
523335
520460
508180
527608
582821
518558
410254
560783
679567
562758
751565
464327
420635
441004
513126
618561
509507
521832
755457
529290
439819
467553
518521
525688
603933
626154
748349
]
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 (566422 , 588642 , 463098 , 525702 , 406698 , 524527 , 707889 , 422463 , 494567 , 458031 , 519261 , 662896 , 590809 , 466355 , 622351 , 522556 , 639044 , 443926 , 405961 , 421890 , 538360 , 551130 , 584063 , 593868 , 596622 , 544528 , 510398 , 796430 , 548751 , 442673 , 464368 , 487550 , 550667 , 576859 , 590469 , 603002 , 421871 , 422044 , 466065 , 476797 , 523335 , 520460 , 508180 , 527608 , 582821 , 518558 , 410254 , 560783 , 679567 , 562758 , 751565 , 464327 , 420635 , 441004 , 513126 , 618561 , 509507 , 521832 , 755457 , 529290 , 439819 , 467553 , 518521 , 525688 , 603933 , 626154 , 748349 );
Copy
4
3.38 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
405961
406698
410254
420635
421871
421890
422044
422463
439819
441004
442673
443926
458031
463098
464327
464368
466065
466355
467553
476797
487550
494567
508180
509507
510398
513126
518521
518558
519261
520460
521832
522556
523335
524527
525688
525702
527608
529290
538360
544528
548751
550667
551130
560783
562758
566422
576859
582821
584063
588642
590469
590809
593868
596622
603002
603933
618561
622351
626154
639044
662896
679567
707889
748349
751565
755457
796430
]
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 (405961 , 406698 , 410254 , 420635 , 421871 , 421890 , 422044 , 422463 , 439819 , 441004 , 442673 , 443926 , 458031 , 463098 , 464327 , 464368 , 466065 , 466355 , 467553 , 476797 , 487550 , 494567 , 508180 , 509507 , 510398 , 513126 , 518521 , 518558 , 519261 , 520460 , 521832 , 522556 , 523335 , 524527 , 525688 , 525702 , 527608 , 529290 , 538360 , 544528 , 548751 , 550667 , 551130 , 560783 , 562758 , 566422 , 576859 , 582821 , 584063 , 588642 , 590469 , 590809 , 593868 , 596622 , 603002 , 603933 , 618561 , 622351 , 626154 , 639044 , 662896 , 679567 , 707889 , 748349 , 751565 , 755457 , 796430 );
Copy
5
185.24 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
405961
406698
410254
420635
421871
421890
422044
422463
439819
441004
442673
443926
458031
463098
464327
464368
466065
466355
467553
476797
487550
494567
508180
509507
510398
513126
518521
518558
519261
520460
521832
522556
523335
524527
525688
525702
527608
529290
538360
544528
548751
550667
551130
560783
562758
566422
576859
582821
584063
588642
590469
590809
593868
596622
603002
603933
618561
622351
626154
639044
662896
679567
707889
748349
751565
755457
796430
]
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 (405961 , 406698 , 410254 , 420635 , 421871 , 421890 , 422044 , 422463 , 439819 , 441004 , 442673 , 443926 , 458031 , 463098 , 464327 , 464368 , 466065 , 466355 , 467553 , 476797 , 487550 , 494567 , 508180 , 509507 , 510398 , 513126 , 518521 , 518558 , 519261 , 520460 , 521832 , 522556 , 523335 , 524527 , 525688 , 525702 , 527608 , 529290 , 538360 , 544528 , 548751 , 550667 , 551130 , 560783 , 562758 , 566422 , 576859 , 582821 , 584063 , 588642 , 590469 , 590809 , 593868 , 596622 , 603002 , 603933 , 618561 , 622351 , 626154 , 639044 , 662896 , 679567 , 707889 , 748349 , 751565 , 755457 , 796430 );
Copy