3
15.30 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
438212
401238
465499
606028
694991
547671
768441
458116
445364
494254
492664
585269
701665
477779
494635
546517
518410
786919
469246
495281
472552
490979
415592
443629
560844
586466
415847
448651
492974
468802
521501
518780
483182
384285
552656
510070
466164
511472
588525
567556
487156
570223
659562
655615
558625
560462
390642
483639
505004
399717
536925
615560
611416
655714
602610
621201
655612
624930
601827
563446
657402
618804
634230
516227
491802
]
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 (438212 , 401238 , 465499 , 606028 , 694991 , 547671 , 768441 , 458116 , 445364 , 494254 , 492664 , 585269 , 701665 , 477779 , 494635 , 546517 , 518410 , 786919 , 469246 , 495281 , 472552 , 490979 , 415592 , 443629 , 560844 , 586466 , 415847 , 448651 , 492974 , 468802 , 521501 , 518780 , 483182 , 384285 , 552656 , 510070 , 466164 , 511472 , 588525 , 567556 , 487156 , 570223 , 659562 , 655615 , 558625 , 560462 , 390642 , 483639 , 505004 , 399717 , 536925 , 615560 , 611416 , 655714 , 602610 , 621201 , 655612 , 624930 , 601827 , 563446 , 657402 , 618804 , 634230 , 516227 , 491802 );
Copy
4
3.06 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
384285
390642
399717
401238
415592
415847
438212
443629
445364
448651
458116
465499
466164
468802
469246
472552
477779
483182
483639
487156
490979
491802
492664
492974
494254
494635
495281
505004
510070
511472
516227
518410
518780
521501
536925
546517
547671
552656
558625
560462
560844
563446
567556
570223
585269
586466
588525
601827
602610
606028
611416
615560
618804
621201
624930
634230
655612
655615
655714
657402
659562
694991
701665
768441
786919
]
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 (384285 , 390642 , 399717 , 401238 , 415592 , 415847 , 438212 , 443629 , 445364 , 448651 , 458116 , 465499 , 466164 , 468802 , 469246 , 472552 , 477779 , 483182 , 483639 , 487156 , 490979 , 491802 , 492664 , 492974 , 494254 , 494635 , 495281 , 505004 , 510070 , 511472 , 516227 , 518410 , 518780 , 521501 , 536925 , 546517 , 547671 , 552656 , 558625 , 560462 , 560844 , 563446 , 567556 , 570223 , 585269 , 586466 , 588525 , 601827 , 602610 , 606028 , 611416 , 615560 , 618804 , 621201 , 624930 , 634230 , 655612 , 655615 , 655714 , 657402 , 659562 , 694991 , 701665 , 768441 , 786919 );
Copy
5
172.90 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
384285
390642
399717
401238
415592
415847
438212
443629
445364
448651
458116
465499
466164
468802
469246
472552
477779
483182
483639
487156
490979
491802
492664
492974
494254
494635
495281
505004
510070
511472
516227
518410
518780
521501
536925
546517
547671
552656
558625
560462
560844
563446
567556
570223
585269
586466
588525
601827
602610
606028
611416
615560
618804
621201
624930
634230
655612
655615
655714
657402
659562
694991
701665
768441
786919
]
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 (384285 , 390642 , 399717 , 401238 , 415592 , 415847 , 438212 , 443629 , 445364 , 448651 , 458116 , 465499 , 466164 , 468802 , 469246 , 472552 , 477779 , 483182 , 483639 , 487156 , 490979 , 491802 , 492664 , 492974 , 494254 , 494635 , 495281 , 505004 , 510070 , 511472 , 516227 , 518410 , 518780 , 521501 , 536925 , 546517 , 547671 , 552656 , 558625 , 560462 , 560844 , 563446 , 567556 , 570223 , 585269 , 586466 , 588525 , 601827 , 602610 , 606028 , 611416 , 615560 , 618804 , 621201 , 624930 , 634230 , 655612 , 655615 , 655714 , 657402 , 659562 , 694991 , 701665 , 768441 , 786919 );
Copy