3
12.93 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
540224
561778
540243
561796
554672
554676
561794
462218
546542
559364
561788
561776
561798
561800
498503
561772
711864
540225
711845
561774
530454
483577
454728
577278
476058
577033
488931
617163
477243
389406
555466
420185
536774
797086
737644
777067
572006
415450
597732
556533
593497
777079
657529
580500
596244
626732
496301
595023
586429
405804
681027
642404
507795
463083
536910
518451
590716
595029
496312
595070
650385
603724
533802
452097
458010
]
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 (540224 , 561778 , 540243 , 561796 , 554672 , 554676 , 561794 , 462218 , 546542 , 559364 , 561788 , 561776 , 561798 , 561800 , 498503 , 561772 , 711864 , 540225 , 711845 , 561774 , 530454 , 483577 , 454728 , 577278 , 476058 , 577033 , 488931 , 617163 , 477243 , 389406 , 555466 , 420185 , 536774 , 797086 , 737644 , 777067 , 572006 , 415450 , 597732 , 556533 , 593497 , 777079 , 657529 , 580500 , 596244 , 626732 , 496301 , 595023 , 586429 , 405804 , 681027 , 642404 , 507795 , 463083 , 536910 , 518451 , 590716 , 595029 , 496312 , 595070 , 650385 , 603724 , 533802 , 452097 , 458010 );
Copy
4
2.54 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
389406
405804
415450
420185
452097
454728
458010
462218
463083
476058
477243
483577
488931
496301
496312
498503
507795
518451
530454
533802
536774
536910
540224
540225
540243
546542
554672
554676
555466
556533
559364
561772
561774
561776
561778
561788
561794
561796
561798
561800
572006
577033
577278
580500
586429
590716
593497
595023
595029
595070
596244
597732
603724
617163
626732
642404
650385
657529
681027
711845
711864
737644
777067
777079
797086
]
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 (389406 , 405804 , 415450 , 420185 , 452097 , 454728 , 458010 , 462218 , 463083 , 476058 , 477243 , 483577 , 488931 , 496301 , 496312 , 498503 , 507795 , 518451 , 530454 , 533802 , 536774 , 536910 , 540224 , 540225 , 540243 , 546542 , 554672 , 554676 , 555466 , 556533 , 559364 , 561772 , 561774 , 561776 , 561778 , 561788 , 561794 , 561796 , 561798 , 561800 , 572006 , 577033 , 577278 , 580500 , 586429 , 590716 , 593497 , 595023 , 595029 , 595070 , 596244 , 597732 , 603724 , 617163 , 626732 , 642404 , 650385 , 657529 , 681027 , 711845 , 711864 , 737644 , 777067 , 777079 , 797086 );
Copy
5
85.70 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
389406
405804
415450
420185
452097
454728
458010
462218
463083
476058
477243
483577
488931
496301
496312
498503
507795
518451
530454
533802
536774
536910
540224
540225
540243
546542
554672
554676
555466
556533
559364
561772
561774
561776
561778
561788
561794
561796
561798
561800
572006
577033
577278
580500
586429
590716
593497
595023
595029
595070
596244
597732
603724
617163
626732
642404
650385
657529
681027
711845
711864
737644
777067
777079
797086
]
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 (389406 , 405804 , 415450 , 420185 , 452097 , 454728 , 458010 , 462218 , 463083 , 476058 , 477243 , 483577 , 488931 , 496301 , 496312 , 498503 , 507795 , 518451 , 530454 , 533802 , 536774 , 536910 , 540224 , 540225 , 540243 , 546542 , 554672 , 554676 , 555466 , 556533 , 559364 , 561772 , 561774 , 561776 , 561778 , 561788 , 561794 , 561796 , 561798 , 561800 , 572006 , 577033 , 577278 , 580500 , 586429 , 590716 , 593497 , 595023 , 595029 , 595070 , 596244 , 597732 , 603724 , 617163 , 626732 , 642404 , 650385 , 657529 , 681027 , 711845 , 711864 , 737644 , 777067 , 777079 , 797086 );
Copy