3
11.98 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
540905
487027
384998
382862
400954
406661
426010
814923
467583
478433
524416
516651
518106
525137
500726
518179
528865
577211
577215
664521
588745
603618
416773
478087
417897
463864
478608
504042
516643
506841
482786
551532
560368
569677
579541
582800
596534
591749
623792
478775
421494
503875
507767
518617
388219
446394
470622
420559
509033
477020
566112
659115
613360
590908
636247
466097
514808
447426
618789
611989
467428
484694
562754
562758
608376
609279
562108
]
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 (540905 , 487027 , 384998 , 382862 , 400954 , 406661 , 426010 , 814923 , 467583 , 478433 , 524416 , 516651 , 518106 , 525137 , 500726 , 518179 , 528865 , 577211 , 577215 , 664521 , 588745 , 603618 , 416773 , 478087 , 417897 , 463864 , 478608 , 504042 , 516643 , 506841 , 482786 , 551532 , 560368 , 569677 , 579541 , 582800 , 596534 , 591749 , 623792 , 478775 , 421494 , 503875 , 507767 , 518617 , 388219 , 446394 , 470622 , 420559 , 509033 , 477020 , 566112 , 659115 , 613360 , 590908 , 636247 , 466097 , 514808 , 447426 , 618789 , 611989 , 467428 , 484694 , 562754 , 562758 , 608376 , 609279 , 562108 );
Copy
4
3.46 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
382862
384998
388219
400954
406661
416773
417897
420559
421494
426010
446394
447426
463864
466097
467428
467583
470622
477020
478087
478433
478608
478775
482786
484694
487027
500726
503875
504042
506841
507767
509033
514808
516643
516651
518106
518179
518617
524416
525137
528865
540905
551532
560368
562108
562754
562758
566112
569677
577211
577215
579541
582800
588745
590908
591749
596534
603618
608376
609279
611989
613360
618789
623792
636247
659115
664521
814923
]
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 (382862 , 384998 , 388219 , 400954 , 406661 , 416773 , 417897 , 420559 , 421494 , 426010 , 446394 , 447426 , 463864 , 466097 , 467428 , 467583 , 470622 , 477020 , 478087 , 478433 , 478608 , 478775 , 482786 , 484694 , 487027 , 500726 , 503875 , 504042 , 506841 , 507767 , 509033 , 514808 , 516643 , 516651 , 518106 , 518179 , 518617 , 524416 , 525137 , 528865 , 540905 , 551532 , 560368 , 562108 , 562754 , 562758 , 566112 , 569677 , 577211 , 577215 , 579541 , 582800 , 588745 , 590908 , 591749 , 596534 , 603618 , 608376 , 609279 , 611989 , 613360 , 618789 , 623792 , 636247 , 659115 , 664521 , 814923 );
Copy
5
86.80 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
382862
384998
388219
400954
406661
416773
417897
420559
421494
426010
446394
447426
463864
466097
467428
467583
470622
477020
478087
478433
478608
478775
482786
484694
487027
500726
503875
504042
506841
507767
509033
514808
516643
516651
518106
518179
518617
524416
525137
528865
540905
551532
560368
562108
562754
562758
566112
569677
577211
577215
579541
582800
588745
590908
591749
596534
603618
608376
609279
611989
613360
618789
623792
636247
659115
664521
814923
]
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 (382862 , 384998 , 388219 , 400954 , 406661 , 416773 , 417897 , 420559 , 421494 , 426010 , 446394 , 447426 , 463864 , 466097 , 467428 , 467583 , 470622 , 477020 , 478087 , 478433 , 478608 , 478775 , 482786 , 484694 , 487027 , 500726 , 503875 , 504042 , 506841 , 507767 , 509033 , 514808 , 516643 , 516651 , 518106 , 518179 , 518617 , 524416 , 525137 , 528865 , 540905 , 551532 , 560368 , 562108 , 562754 , 562758 , 566112 , 569677 , 577211 , 577215 , 579541 , 582800 , 588745 , 590908 , 591749 , 596534 , 603618 , 608376 , 609279 , 611989 , 613360 , 618789 , 623792 , 636247 , 659115 , 664521 , 814923 );
Copy