3
14.17 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
591094
434971
423708
437526
421557
511810
130060
550667
557676
586690
461729
527888
443497
531560
393684
412043
720245
660424
636286
513638
645618
413944
431105
633978
643377
417811
523392
605665
476409
523198
481910
491446
486182
404779
468628
500312
451983
565154
593992
583723
605671
510139
459527
423329
494833
451866
434001
517844
577265
589599
495273
536703
417881
639277
604476
621612
381752
497679
495218
518438
559938
555850
546804
602008
429797
513215
541588
609922
601101
643316
516842
589060
]
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 (591094 , 434971 , 423708 , 437526 , 421557 , 511810 , 130060 , 550667 , 557676 , 586690 , 461729 , 527888 , 443497 , 531560 , 393684 , 412043 , 720245 , 660424 , 636286 , 513638 , 645618 , 413944 , 431105 , 633978 , 643377 , 417811 , 523392 , 605665 , 476409 , 523198 , 481910 , 491446 , 486182 , 404779 , 468628 , 500312 , 451983 , 565154 , 593992 , 583723 , 605671 , 510139 , 459527 , 423329 , 494833 , 451866 , 434001 , 517844 , 577265 , 589599 , 495273 , 536703 , 417881 , 639277 , 604476 , 621612 , 381752 , 497679 , 495218 , 518438 , 559938 , 555850 , 546804 , 602008 , 429797 , 513215 , 541588 , 609922 , 601101 , 643316 , 516842 , 589060 );
Copy
4
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
130060
381752
393684
404779
412043
413944
417811
417881
421557
423329
423708
429797
431105
434001
434971
437526
443497
451866
451983
459527
461729
468628
476409
481910
486182
491446
494833
495218
495273
497679
500312
510139
511810
513215
513638
516842
517844
518438
523198
523392
527888
531560
536703
541588
546804
550667
555850
557676
559938
565154
577265
583723
586690
589060
589599
591094
593992
601101
602008
604476
605665
605671
609922
621612
633978
636286
639277
643316
643377
645618
660424
720245
]
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 (130060 , 381752 , 393684 , 404779 , 412043 , 413944 , 417811 , 417881 , 421557 , 423329 , 423708 , 429797 , 431105 , 434001 , 434971 , 437526 , 443497 , 451866 , 451983 , 459527 , 461729 , 468628 , 476409 , 481910 , 486182 , 491446 , 494833 , 495218 , 495273 , 497679 , 500312 , 510139 , 511810 , 513215 , 513638 , 516842 , 517844 , 518438 , 523198 , 523392 , 527888 , 531560 , 536703 , 541588 , 546804 , 550667 , 555850 , 557676 , 559938 , 565154 , 577265 , 583723 , 586690 , 589060 , 589599 , 591094 , 593992 , 601101 , 602008 , 604476 , 605665 , 605671 , 609922 , 621612 , 633978 , 636286 , 639277 , 643316 , 643377 , 645618 , 660424 , 720245 );
Copy
5
95.07 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
130060
381752
393684
404779
412043
413944
417811
417881
421557
423329
423708
429797
431105
434001
434971
437526
443497
451866
451983
459527
461729
468628
476409
481910
486182
491446
494833
495218
495273
497679
500312
510139
511810
513215
513638
516842
517844
518438
523198
523392
527888
531560
536703
541588
546804
550667
555850
557676
559938
565154
577265
583723
586690
589060
589599
591094
593992
601101
602008
604476
605665
605671
609922
621612
633978
636286
639277
643316
643377
645618
660424
720245
]
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 (130060 , 381752 , 393684 , 404779 , 412043 , 413944 , 417811 , 417881 , 421557 , 423329 , 423708 , 429797 , 431105 , 434001 , 434971 , 437526 , 443497 , 451866 , 451983 , 459527 , 461729 , 468628 , 476409 , 481910 , 486182 , 491446 , 494833 , 495218 , 495273 , 497679 , 500312 , 510139 , 511810 , 513215 , 513638 , 516842 , 517844 , 518438 , 523198 , 523392 , 527888 , 531560 , 536703 , 541588 , 546804 , 550667 , 555850 , 557676 , 559938 , 565154 , 577265 , 583723 , 586690 , 589060 , 589599 , 591094 , 593992 , 601101 , 602008 , 604476 , 605665 , 605671 , 609922 , 621612 , 633978 , 636286 , 639277 , 643316 , 643377 , 645618 , 660424 , 720245 );
Copy