3
10.19 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
494236
705142
706758
792418
584530
587122
610513
762385
544053
680461
639893
620955
725247
733219
739304
809877
698196
714918
764790
734927
715000
561915
645755
653009
653051
636088
426838
555677
703792
648123
608696
631396
715911
466055
458456
397439
599175
616832
753025
726278
742166
759955
616223
476004
571348
526181
491310
526560
595063
606338
593561
630317
479603
451279
501835
500151
514018
494095
537407
517766
542079
571277
805832
432569
521686
493408
495999
552348
575832
583894
468868
476079
]
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 (494236 , 705142 , 706758 , 792418 , 584530 , 587122 , 610513 , 762385 , 544053 , 680461 , 639893 , 620955 , 725247 , 733219 , 739304 , 809877 , 698196 , 714918 , 764790 , 734927 , 715000 , 561915 , 645755 , 653009 , 653051 , 636088 , 426838 , 555677 , 703792 , 648123 , 608696 , 631396 , 715911 , 466055 , 458456 , 397439 , 599175 , 616832 , 753025 , 726278 , 742166 , 759955 , 616223 , 476004 , 571348 , 526181 , 491310 , 526560 , 595063 , 606338 , 593561 , 630317 , 479603 , 451279 , 501835 , 500151 , 514018 , 494095 , 537407 , 517766 , 542079 , 571277 , 805832 , 432569 , 521686 , 493408 , 495999 , 552348 , 575832 , 583894 , 468868 , 476079 );
Copy
4
3.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
397439
426838
432569
451279
458456
466055
468868
476004
476079
479603
491310
493408
494095
494236
495999
500151
501835
514018
517766
521686
526181
526560
537407
542079
544053
552348
555677
561915
571277
571348
575832
583894
584530
587122
593561
595063
599175
606338
608696
610513
616223
616832
620955
630317
631396
636088
639893
645755
648123
653009
653051
680461
698196
703792
705142
706758
714918
715000
715911
725247
726278
733219
734927
739304
742166
753025
759955
762385
764790
792418
805832
809877
]
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 (397439 , 426838 , 432569 , 451279 , 458456 , 466055 , 468868 , 476004 , 476079 , 479603 , 491310 , 493408 , 494095 , 494236 , 495999 , 500151 , 501835 , 514018 , 517766 , 521686 , 526181 , 526560 , 537407 , 542079 , 544053 , 552348 , 555677 , 561915 , 571277 , 571348 , 575832 , 583894 , 584530 , 587122 , 593561 , 595063 , 599175 , 606338 , 608696 , 610513 , 616223 , 616832 , 620955 , 630317 , 631396 , 636088 , 639893 , 645755 , 648123 , 653009 , 653051 , 680461 , 698196 , 703792 , 705142 , 706758 , 714918 , 715000 , 715911 , 725247 , 726278 , 733219 , 734927 , 739304 , 742166 , 753025 , 759955 , 762385 , 764790 , 792418 , 805832 , 809877 );
Copy
5
91.84 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
397439
426838
432569
451279
458456
466055
468868
476004
476079
479603
491310
493408
494095
494236
495999
500151
501835
514018
517766
521686
526181
526560
537407
542079
544053
552348
555677
561915
571277
571348
575832
583894
584530
587122
593561
595063
599175
606338
608696
610513
616223
616832
620955
630317
631396
636088
639893
645755
648123
653009
653051
680461
698196
703792
705142
706758
714918
715000
715911
725247
726278
733219
734927
739304
742166
753025
759955
762385
764790
792418
805832
809877
]
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 (397439 , 426838 , 432569 , 451279 , 458456 , 466055 , 468868 , 476004 , 476079 , 479603 , 491310 , 493408 , 494095 , 494236 , 495999 , 500151 , 501835 , 514018 , 517766 , 521686 , 526181 , 526560 , 537407 , 542079 , 544053 , 552348 , 555677 , 561915 , 571277 , 571348 , 575832 , 583894 , 584530 , 587122 , 593561 , 595063 , 599175 , 606338 , 608696 , 610513 , 616223 , 616832 , 620955 , 630317 , 631396 , 636088 , 639893 , 645755 , 648123 , 653009 , 653051 , 680461 , 698196 , 703792 , 705142 , 706758 , 714918 , 715000 , 715911 , 725247 , 726278 , 733219 , 734927 , 739304 , 742166 , 753025 , 759955 , 762385 , 764790 , 792418 , 805832 , 809877 );
Copy