3
15.06 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
700949
666549
635188
643376
802121
607355
641949
522895
522917
469738
508133
521586
576645
601040
421833
421882
522870
532942
634885
704531
419550
783987
599835
400491
490262
532676
650188
601600
424351
541759
699397
591094
428397
811826
531117
537864
541821
676634
573800
515545
599865
532482
446109
526553
549797
629742
400481
625696
634856
445416
646901
599927
631968
751565
430404
499852
566702
532975
578823
635233
600006
637001
508150
676428
630546
634140
632642
637148
642016
545480
622778
439720
529792
421900
]
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 (700949 , 666549 , 635188 , 643376 , 802121 , 607355 , 641949 , 522895 , 522917 , 469738 , 508133 , 521586 , 576645 , 601040 , 421833 , 421882 , 522870 , 532942 , 634885 , 704531 , 419550 , 783987 , 599835 , 400491 , 490262 , 532676 , 650188 , 601600 , 424351 , 541759 , 699397 , 591094 , 428397 , 811826 , 531117 , 537864 , 541821 , 676634 , 573800 , 515545 , 599865 , 532482 , 446109 , 526553 , 549797 , 629742 , 400481 , 625696 , 634856 , 445416 , 646901 , 599927 , 631968 , 751565 , 430404 , 499852 , 566702 , 532975 , 578823 , 635233 , 600006 , 637001 , 508150 , 676428 , 630546 , 634140 , 632642 , 637148 , 642016 , 545480 , 622778 , 439720 , 529792 , 421900 );
Copy
4
3.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
400481
400491
419550
421833
421882
421900
424351
428397
430404
439720
445416
446109
469738
490262
499852
508133
508150
515545
521586
522870
522895
522917
526553
529792
531117
532482
532676
532942
532975
537864
541759
541821
545480
549797
566702
573800
576645
578823
591094
599835
599865
599927
600006
601040
601600
607355
622778
625696
629742
630546
631968
632642
634140
634856
634885
635188
635233
637001
637148
641949
642016
643376
646901
650188
666549
676428
676634
699397
700949
704531
751565
783987
802121
811826
]
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 (400481 , 400491 , 419550 , 421833 , 421882 , 421900 , 424351 , 428397 , 430404 , 439720 , 445416 , 446109 , 469738 , 490262 , 499852 , 508133 , 508150 , 515545 , 521586 , 522870 , 522895 , 522917 , 526553 , 529792 , 531117 , 532482 , 532676 , 532942 , 532975 , 537864 , 541759 , 541821 , 545480 , 549797 , 566702 , 573800 , 576645 , 578823 , 591094 , 599835 , 599865 , 599927 , 600006 , 601040 , 601600 , 607355 , 622778 , 625696 , 629742 , 630546 , 631968 , 632642 , 634140 , 634856 , 634885 , 635188 , 635233 , 637001 , 637148 , 641949 , 642016 , 643376 , 646901 , 650188 , 666549 , 676428 , 676634 , 699397 , 700949 , 704531 , 751565 , 783987 , 802121 , 811826 );
Copy
5
298.79 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
400481
400491
419550
421833
421882
421900
424351
428397
430404
439720
445416
446109
469738
490262
499852
508133
508150
515545
521586
522870
522895
522917
526553
529792
531117
532482
532676
532942
532975
537864
541759
541821
545480
549797
566702
573800
576645
578823
591094
599835
599865
599927
600006
601040
601600
607355
622778
625696
629742
630546
631968
632642
634140
634856
634885
635188
635233
637001
637148
641949
642016
643376
646901
650188
666549
676428
676634
699397
700949
704531
751565
783987
802121
811826
]
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 (400481 , 400491 , 419550 , 421833 , 421882 , 421900 , 424351 , 428397 , 430404 , 439720 , 445416 , 446109 , 469738 , 490262 , 499852 , 508133 , 508150 , 515545 , 521586 , 522870 , 522895 , 522917 , 526553 , 529792 , 531117 , 532482 , 532676 , 532942 , 532975 , 537864 , 541759 , 541821 , 545480 , 549797 , 566702 , 573800 , 576645 , 578823 , 591094 , 599835 , 599865 , 599927 , 600006 , 601040 , 601600 , 607355 , 622778 , 625696 , 629742 , 630546 , 631968 , 632642 , 634140 , 634856 , 634885 , 635188 , 635233 , 637001 , 637148 , 641949 , 642016 , 643376 , 646901 , 650188 , 666549 , 676428 , 676634 , 699397 , 700949 , 704531 , 751565 , 783987 , 802121 , 811826 );
Copy