3
15.20 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
575802
562890
575139
541607
718798
646199
644669
452606
517833
536657
582227
443871
484370
577371
541366
560520
523950
576645
678052
470302
465824
528254
524951
553273
571241
786552
525702
566243
452644
459512
526895
540483
534988
527604
540688
621698
470309
443855
526373
563883
567826
544455
415798
457789
486086
567140
485061
575828
475951
525464
645918
670089
507680
620754
519345
567141
622831
553070
576638
619519
521740
526633
567139
622824
622832
541588
609880
]
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 (575802 , 562890 , 575139 , 541607 , 718798 , 646199 , 644669 , 452606 , 517833 , 536657 , 582227 , 443871 , 484370 , 577371 , 541366 , 560520 , 523950 , 576645 , 678052 , 470302 , 465824 , 528254 , 524951 , 553273 , 571241 , 786552 , 525702 , 566243 , 452644 , 459512 , 526895 , 540483 , 534988 , 527604 , 540688 , 621698 , 470309 , 443855 , 526373 , 563883 , 567826 , 544455 , 415798 , 457789 , 486086 , 567140 , 485061 , 575828 , 475951 , 525464 , 645918 , 670089 , 507680 , 620754 , 519345 , 567141 , 622831 , 553070 , 576638 , 619519 , 521740 , 526633 , 567139 , 622824 , 622832 , 541588 , 609880 );
Copy
4
2.67 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
415798
443855
443871
452606
452644
457789
459512
465824
470302
470309
475951
484370
485061
486086
507680
517833
519345
521740
523950
524951
525464
525702
526373
526633
526895
527604
528254
534988
536657
540483
540688
541366
541588
541607
544455
553070
553273
560520
562890
563883
566243
567139
567140
567141
567826
571241
575139
575802
575828
576638
576645
577371
582227
609880
619519
620754
621698
622824
622831
622832
644669
645918
646199
670089
678052
718798
786552
]
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 (415798 , 443855 , 443871 , 452606 , 452644 , 457789 , 459512 , 465824 , 470302 , 470309 , 475951 , 484370 , 485061 , 486086 , 507680 , 517833 , 519345 , 521740 , 523950 , 524951 , 525464 , 525702 , 526373 , 526633 , 526895 , 527604 , 528254 , 534988 , 536657 , 540483 , 540688 , 541366 , 541588 , 541607 , 544455 , 553070 , 553273 , 560520 , 562890 , 563883 , 566243 , 567139 , 567140 , 567141 , 567826 , 571241 , 575139 , 575802 , 575828 , 576638 , 576645 , 577371 , 582227 , 609880 , 619519 , 620754 , 621698 , 622824 , 622831 , 622832 , 644669 , 645918 , 646199 , 670089 , 678052 , 718798 , 786552 );
Copy
5
298.94 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
415798
443855
443871
452606
452644
457789
459512
465824
470302
470309
475951
484370
485061
486086
507680
517833
519345
521740
523950
524951
525464
525702
526373
526633
526895
527604
528254
534988
536657
540483
540688
541366
541588
541607
544455
553070
553273
560520
562890
563883
566243
567139
567140
567141
567826
571241
575139
575802
575828
576638
576645
577371
582227
609880
619519
620754
621698
622824
622831
622832
644669
645918
646199
670089
678052
718798
786552
]
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 (415798 , 443855 , 443871 , 452606 , 452644 , 457789 , 459512 , 465824 , 470302 , 470309 , 475951 , 484370 , 485061 , 486086 , 507680 , 517833 , 519345 , 521740 , 523950 , 524951 , 525464 , 525702 , 526373 , 526633 , 526895 , 527604 , 528254 , 534988 , 536657 , 540483 , 540688 , 541366 , 541588 , 541607 , 544455 , 553070 , 553273 , 560520 , 562890 , 563883 , 566243 , 567139 , 567140 , 567141 , 567826 , 571241 , 575139 , 575802 , 575828 , 576638 , 576645 , 577371 , 582227 , 609880 , 619519 , 620754 , 621698 , 622824 , 622831 , 622832 , 644669 , 645918 , 646199 , 670089 , 678052 , 718798 , 786552 );
Copy