3
11.01 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
788111
563177
816997
804044
401398
823183
545105
775290
752942
753277
726322
735481
793812
817443
677402
685948
744575
776917
559520
705368
775018
435644
461862
526937
519994
419876
557843
807703
811621
801376
720686
797816
370794
556500
440966
409156
456858
452323
574805
555863
758723
468958
514631
491227
541329
430787
457645
472626
564902
567623
617346
472300
501935
439216
815330
546724
482120
519795
468929
542743
687507
444158
515420
499498
410218
488246
524848
]
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 (788111 , 563177 , 816997 , 804044 , 401398 , 823183 , 545105 , 775290 , 752942 , 753277 , 726322 , 735481 , 793812 , 817443 , 677402 , 685948 , 744575 , 776917 , 559520 , 705368 , 775018 , 435644 , 461862 , 526937 , 519994 , 419876 , 557843 , 807703 , 811621 , 801376 , 720686 , 797816 , 370794 , 556500 , 440966 , 409156 , 456858 , 452323 , 574805 , 555863 , 758723 , 468958 , 514631 , 491227 , 541329 , 430787 , 457645 , 472626 , 564902 , 567623 , 617346 , 472300 , 501935 , 439216 , 815330 , 546724 , 482120 , 519795 , 468929 , 542743 , 687507 , 444158 , 515420 , 499498 , 410218 , 488246 , 524848 );
Copy
4
2.60 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
370794
401398
409156
410218
419876
430787
435644
439216
440966
444158
452323
456858
457645
461862
468929
468958
472300
472626
482120
488246
491227
499498
501935
514631
515420
519795
519994
524848
526937
541329
542743
545105
546724
555863
556500
557843
559520
563177
564902
567623
574805
617346
677402
685948
687507
705368
720686
726322
735481
744575
752942
753277
758723
775018
775290
776917
788111
793812
797816
801376
804044
807703
811621
815330
816997
817443
823183
]
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 (370794 , 401398 , 409156 , 410218 , 419876 , 430787 , 435644 , 439216 , 440966 , 444158 , 452323 , 456858 , 457645 , 461862 , 468929 , 468958 , 472300 , 472626 , 482120 , 488246 , 491227 , 499498 , 501935 , 514631 , 515420 , 519795 , 519994 , 524848 , 526937 , 541329 , 542743 , 545105 , 546724 , 555863 , 556500 , 557843 , 559520 , 563177 , 564902 , 567623 , 574805 , 617346 , 677402 , 685948 , 687507 , 705368 , 720686 , 726322 , 735481 , 744575 , 752942 , 753277 , 758723 , 775018 , 775290 , 776917 , 788111 , 793812 , 797816 , 801376 , 804044 , 807703 , 811621 , 815330 , 816997 , 817443 , 823183 );
Copy
5
75.74 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
370794
401398
409156
410218
419876
430787
435644
439216
440966
444158
452323
456858
457645
461862
468929
468958
472300
472626
482120
488246
491227
499498
501935
514631
515420
519795
519994
524848
526937
541329
542743
545105
546724
555863
556500
557843
559520
563177
564902
567623
574805
617346
677402
685948
687507
705368
720686
726322
735481
744575
752942
753277
758723
775018
775290
776917
788111
793812
797816
801376
804044
807703
811621
815330
816997
817443
823183
]
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 (370794 , 401398 , 409156 , 410218 , 419876 , 430787 , 435644 , 439216 , 440966 , 444158 , 452323 , 456858 , 457645 , 461862 , 468929 , 468958 , 472300 , 472626 , 482120 , 488246 , 491227 , 499498 , 501935 , 514631 , 515420 , 519795 , 519994 , 524848 , 526937 , 541329 , 542743 , 545105 , 546724 , 555863 , 556500 , 557843 , 559520 , 563177 , 564902 , 567623 , 574805 , 617346 , 677402 , 685948 , 687507 , 705368 , 720686 , 726322 , 735481 , 744575 , 752942 , 753277 , 758723 , 775018 , 775290 , 776917 , 788111 , 793812 , 797816 , 801376 , 804044 , 807703 , 811621 , 815330 , 816997 , 817443 , 823183 );
Copy