4
14.55 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
589362
552602
545335
661645
582998
672029
646941
616395
730997
545233
630811
542178
542444
802174
670404
561029
671791
621710
797224
722079
744820
666579
552604
606156
542439
542397
542416
574369
718766
649583
570159
679317
633773
617414
553695
544812
645952
749924
633768
708443
745263
678495
550205
677781
678052
637592
634138
704248
678131
637101
633446
674983
541853
642705
633775
734371
676089
676088
542183
574001
629315
676111
595699
554722
678533
676632
650817
554743
640789
640755
640805
639735
599950
600340
]
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 (589362 , 552602 , 545335 , 661645 , 582998 , 672029 , 646941 , 616395 , 730997 , 545233 , 630811 , 542178 , 542444 , 802174 , 670404 , 561029 , 671791 , 621710 , 797224 , 722079 , 744820 , 666579 , 552604 , 606156 , 542439 , 542397 , 542416 , 574369 , 718766 , 649583 , 570159 , 679317 , 633773 , 617414 , 553695 , 544812 , 645952 , 749924 , 633768 , 708443 , 745263 , 678495 , 550205 , 677781 , 678052 , 637592 , 634138 , 704248 , 678131 , 637101 , 633446 , 674983 , 541853 , 642705 , 633775 , 734371 , 676089 , 676088 , 542183 , 574001 , 629315 , 676111 , 595699 , 554722 , 678533 , 676632 , 650817 , 554743 , 640789 , 640755 , 640805 , 639735 , 599950 , 600340 );
Copy
5
3.12 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
541853
542178
542183
542397
542416
542439
542444
544812
545233
545335
550205
552602
552604
553695
554722
554743
561029
570159
574001
574369
582998
589362
595699
599950
600340
606156
616395
617414
621710
629315
630811
633446
633768
633773
633775
634138
637101
637592
639735
640755
640789
640805
642705
645952
646941
649583
650817
661645
666579
670404
671791
672029
674983
676088
676089
676111
676632
677781
678052
678131
678495
678533
679317
704248
708443
718766
722079
730997
734371
744820
745263
749924
797224
802174
]
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 (541853 , 542178 , 542183 , 542397 , 542416 , 542439 , 542444 , 544812 , 545233 , 545335 , 550205 , 552602 , 552604 , 553695 , 554722 , 554743 , 561029 , 570159 , 574001 , 574369 , 582998 , 589362 , 595699 , 599950 , 600340 , 606156 , 616395 , 617414 , 621710 , 629315 , 630811 , 633446 , 633768 , 633773 , 633775 , 634138 , 637101 , 637592 , 639735 , 640755 , 640789 , 640805 , 642705 , 645952 , 646941 , 649583 , 650817 , 661645 , 666579 , 670404 , 671791 , 672029 , 674983 , 676088 , 676089 , 676111 , 676632 , 677781 , 678052 , 678131 , 678495 , 678533 , 679317 , 704248 , 708443 , 718766 , 722079 , 730997 , 734371 , 744820 , 745263 , 749924 , 797224 , 802174 );
Copy
6
118.01 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
541853
542178
542183
542397
542416
542439
542444
544812
545233
545335
550205
552602
552604
553695
554722
554743
561029
570159
574001
574369
582998
589362
595699
599950
600340
606156
616395
617414
621710
629315
630811
633446
633768
633773
633775
634138
637101
637592
639735
640755
640789
640805
642705
645952
646941
649583
650817
661645
666579
670404
671791
672029
674983
676088
676089
676111
676632
677781
678052
678131
678495
678533
679317
704248
708443
718766
722079
730997
734371
744820
745263
749924
797224
802174
]
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 (541853 , 542178 , 542183 , 542397 , 542416 , 542439 , 542444 , 544812 , 545233 , 545335 , 550205 , 552602 , 552604 , 553695 , 554722 , 554743 , 561029 , 570159 , 574001 , 574369 , 582998 , 589362 , 595699 , 599950 , 600340 , 606156 , 616395 , 617414 , 621710 , 629315 , 630811 , 633446 , 633768 , 633773 , 633775 , 634138 , 637101 , 637592 , 639735 , 640755 , 640789 , 640805 , 642705 , 645952 , 646941 , 649583 , 650817 , 661645 , 666579 , 670404 , 671791 , 672029 , 674983 , 676088 , 676089 , 676111 , 676632 , 677781 , 678052 , 678131 , 678495 , 678533 , 679317 , 704248 , 708443 , 718766 , 722079 , 730997 , 734371 , 744820 , 745263 , 749924 , 797224 , 802174 );
Copy