3
10.57 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
419832
472360
528007
505746
498899
663926
658486
619457
622356
453606
591896
571715
526974
507976
544676
634222
501119
532499
439078
562118
569249
602743
621966
519154
459759
519605
524503
566068
686710
601580
589698
463016
516874
526330
462930
594819
632059
549669
564398
590076
621338
396526
485557
459078
512452
517965
561369
561526
606769
510591
591428
603933
496984
521738
644150
602397
565471
586519
598605
599342
622767
627679
486536
623933
564412
621259
]
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 (419832 , 472360 , 528007 , 505746 , 498899 , 663926 , 658486 , 619457 , 622356 , 453606 , 591896 , 571715 , 526974 , 507976 , 544676 , 634222 , 501119 , 532499 , 439078 , 562118 , 569249 , 602743 , 621966 , 519154 , 459759 , 519605 , 524503 , 566068 , 686710 , 601580 , 589698 , 463016 , 516874 , 526330 , 462930 , 594819 , 632059 , 549669 , 564398 , 590076 , 621338 , 396526 , 485557 , 459078 , 512452 , 517965 , 561369 , 561526 , 606769 , 510591 , 591428 , 603933 , 496984 , 521738 , 644150 , 602397 , 565471 , 586519 , 598605 , 599342 , 622767 , 627679 , 486536 , 623933 , 564412 , 621259 );
Copy
4
2.16 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
396526
419832
439078
453606
459078
459759
462930
463016
472360
485557
486536
496984
498899
501119
505746
507976
510591
512452
516874
517965
519154
519605
521738
524503
526330
526974
528007
532499
544676
549669
561369
561526
562118
564398
564412
565471
566068
569249
571715
586519
589698
590076
591428
591896
594819
598605
599342
601580
602397
602743
603933
606769
619457
621259
621338
621966
622356
622767
623933
627679
632059
634222
644150
658486
663926
686710
]
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 (396526 , 419832 , 439078 , 453606 , 459078 , 459759 , 462930 , 463016 , 472360 , 485557 , 486536 , 496984 , 498899 , 501119 , 505746 , 507976 , 510591 , 512452 , 516874 , 517965 , 519154 , 519605 , 521738 , 524503 , 526330 , 526974 , 528007 , 532499 , 544676 , 549669 , 561369 , 561526 , 562118 , 564398 , 564412 , 565471 , 566068 , 569249 , 571715 , 586519 , 589698 , 590076 , 591428 , 591896 , 594819 , 598605 , 599342 , 601580 , 602397 , 602743 , 603933 , 606769 , 619457 , 621259 , 621338 , 621966 , 622356 , 622767 , 623933 , 627679 , 632059 , 634222 , 644150 , 658486 , 663926 , 686710 );
Copy
5
83.40 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
396526
419832
439078
453606
459078
459759
462930
463016
472360
485557
486536
496984
498899
501119
505746
507976
510591
512452
516874
517965
519154
519605
521738
524503
526330
526974
528007
532499
544676
549669
561369
561526
562118
564398
564412
565471
566068
569249
571715
586519
589698
590076
591428
591896
594819
598605
599342
601580
602397
602743
603933
606769
619457
621259
621338
621966
622356
622767
623933
627679
632059
634222
644150
658486
663926
686710
]
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 (396526 , 419832 , 439078 , 453606 , 459078 , 459759 , 462930 , 463016 , 472360 , 485557 , 486536 , 496984 , 498899 , 501119 , 505746 , 507976 , 510591 , 512452 , 516874 , 517965 , 519154 , 519605 , 521738 , 524503 , 526330 , 526974 , 528007 , 532499 , 544676 , 549669 , 561369 , 561526 , 562118 , 564398 , 564412 , 565471 , 566068 , 569249 , 571715 , 586519 , 589698 , 590076 , 591428 , 591896 , 594819 , 598605 , 599342 , 601580 , 602397 , 602743 , 603933 , 606769 , 619457 , 621259 , 621338 , 621966 , 622356 , 622767 , 623933 , 627679 , 632059 , 634222 , 644150 , 658486 , 663926 , 686710 );
Copy