4
11.67 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
506297
565907
575134
541212
564529
652213
655927
662152
664497
606344
609841
605790
618687
598782
614696
586695
624755
446531
451557
505626
498649
536924
436139
526280
559300
396670
424388
439440
550680
598609
447942
451651
429909
478514
538802
545384
564706
623212
593577
602948
604352
447858
445022
445539
423280
577450
522768
415784
563991
596551
414327
448221
603076
617046
600056
562397
597075
609103
440632
512509
603009
620882
603488
483546
427346
575548
525272
455898
]
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 (506297 , 565907 , 575134 , 541212 , 564529 , 652213 , 655927 , 662152 , 664497 , 606344 , 609841 , 605790 , 618687 , 598782 , 614696 , 586695 , 624755 , 446531 , 451557 , 505626 , 498649 , 536924 , 436139 , 526280 , 559300 , 396670 , 424388 , 439440 , 550680 , 598609 , 447942 , 451651 , 429909 , 478514 , 538802 , 545384 , 564706 , 623212 , 593577 , 602948 , 604352 , 447858 , 445022 , 445539 , 423280 , 577450 , 522768 , 415784 , 563991 , 596551 , 414327 , 448221 , 603076 , 617046 , 600056 , 562397 , 597075 , 609103 , 440632 , 512509 , 603009 , 620882 , 603488 , 483546 , 427346 , 575548 , 525272 , 455898 );
Copy
5
3.17 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
396670
414327
415784
423280
424388
427346
429909
436139
439440
440632
445022
445539
446531
447858
447942
448221
451557
451651
455898
478514
483546
498649
505626
506297
512509
522768
525272
526280
536924
538802
541212
545384
550680
559300
562397
563991
564529
564706
565907
575134
575548
577450
586695
593577
596551
597075
598609
598782
600056
602948
603009
603076
603488
604352
605790
606344
609103
609841
614696
617046
618687
620882
623212
624755
652213
655927
662152
664497
]
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 (396670 , 414327 , 415784 , 423280 , 424388 , 427346 , 429909 , 436139 , 439440 , 440632 , 445022 , 445539 , 446531 , 447858 , 447942 , 448221 , 451557 , 451651 , 455898 , 478514 , 483546 , 498649 , 505626 , 506297 , 512509 , 522768 , 525272 , 526280 , 536924 , 538802 , 541212 , 545384 , 550680 , 559300 , 562397 , 563991 , 564529 , 564706 , 565907 , 575134 , 575548 , 577450 , 586695 , 593577 , 596551 , 597075 , 598609 , 598782 , 600056 , 602948 , 603009 , 603076 , 603488 , 604352 , 605790 , 606344 , 609103 , 609841 , 614696 , 617046 , 618687 , 620882 , 623212 , 624755 , 652213 , 655927 , 662152 , 664497 );
Copy
6
79.05 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
396670
414327
415784
423280
424388
427346
429909
436139
439440
440632
445022
445539
446531
447858
447942
448221
451557
451651
455898
478514
483546
498649
505626
506297
512509
522768
525272
526280
536924
538802
541212
545384
550680
559300
562397
563991
564529
564706
565907
575134
575548
577450
586695
593577
596551
597075
598609
598782
600056
602948
603009
603076
603488
604352
605790
606344
609103
609841
614696
617046
618687
620882
623212
624755
652213
655927
662152
664497
]
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 (396670 , 414327 , 415784 , 423280 , 424388 , 427346 , 429909 , 436139 , 439440 , 440632 , 445022 , 445539 , 446531 , 447858 , 447942 , 448221 , 451557 , 451651 , 455898 , 478514 , 483546 , 498649 , 505626 , 506297 , 512509 , 522768 , 525272 , 526280 , 536924 , 538802 , 541212 , 545384 , 550680 , 559300 , 562397 , 563991 , 564529 , 564706 , 565907 , 575134 , 575548 , 577450 , 586695 , 593577 , 596551 , 597075 , 598609 , 598782 , 600056 , 602948 , 603009 , 603076 , 603488 , 604352 , 605790 , 606344 , 609103 , 609841 , 614696 , 617046 , 618687 , 620882 , 623212 , 624755 , 652213 , 655927 , 662152 , 664497 );
Copy