4
11.17 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
725664
563967
753755
814724
826256
603280
790260
792827
720286
666707
635424
588503
628950
617803
724691
768754
814121
529689
534746
563958
710076
721593
638680
724699
730972
738671
730173
819737
529691
530235
536145
645557
648195
701447
604318
638168
774157
529683
542729
636261
635751
708878
531600
796047
710940
825275
527879
701448
717222
453947
639687
752925
444607
436149
445704
529996
574648
545232
593776
593810
757177
795812
441877
446794
520336
588432
587907
402997
508593
579720
507800
514811
537174
442320
]
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 (725664 , 563967 , 753755 , 814724 , 826256 , 603280 , 790260 , 792827 , 720286 , 666707 , 635424 , 588503 , 628950 , 617803 , 724691 , 768754 , 814121 , 529689 , 534746 , 563958 , 710076 , 721593 , 638680 , 724699 , 730972 , 738671 , 730173 , 819737 , 529691 , 530235 , 536145 , 645557 , 648195 , 701447 , 604318 , 638168 , 774157 , 529683 , 542729 , 636261 , 635751 , 708878 , 531600 , 796047 , 710940 , 825275 , 527879 , 701448 , 717222 , 453947 , 639687 , 752925 , 444607 , 436149 , 445704 , 529996 , 574648 , 545232 , 593776 , 593810 , 757177 , 795812 , 441877 , 446794 , 520336 , 588432 , 587907 , 402997 , 508593 , 579720 , 507800 , 514811 , 537174 , 442320 );
Copy
5
2.43 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
402997
436149
441877
442320
444607
445704
446794
453947
507800
508593
514811
520336
527879
529683
529689
529691
529996
530235
531600
534746
536145
537174
542729
545232
563958
563967
574648
579720
587907
588432
588503
593776
593810
603280
604318
617803
628950
635424
635751
636261
638168
638680
639687
645557
648195
666707
701447
701448
708878
710076
710940
717222
720286
721593
724691
724699
725664
730173
730972
738671
752925
753755
757177
768754
774157
790260
792827
795812
796047
814121
814724
819737
825275
826256
]
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 (402997 , 436149 , 441877 , 442320 , 444607 , 445704 , 446794 , 453947 , 507800 , 508593 , 514811 , 520336 , 527879 , 529683 , 529689 , 529691 , 529996 , 530235 , 531600 , 534746 , 536145 , 537174 , 542729 , 545232 , 563958 , 563967 , 574648 , 579720 , 587907 , 588432 , 588503 , 593776 , 593810 , 603280 , 604318 , 617803 , 628950 , 635424 , 635751 , 636261 , 638168 , 638680 , 639687 , 645557 , 648195 , 666707 , 701447 , 701448 , 708878 , 710076 , 710940 , 717222 , 720286 , 721593 , 724691 , 724699 , 725664 , 730173 , 730972 , 738671 , 752925 , 753755 , 757177 , 768754 , 774157 , 790260 , 792827 , 795812 , 796047 , 814121 , 814724 , 819737 , 825275 , 826256 );
Copy
6
94.91 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
402997
436149
441877
442320
444607
445704
446794
453947
507800
508593
514811
520336
527879
529683
529689
529691
529996
530235
531600
534746
536145
537174
542729
545232
563958
563967
574648
579720
587907
588432
588503
593776
593810
603280
604318
617803
628950
635424
635751
636261
638168
638680
639687
645557
648195
666707
701447
701448
708878
710076
710940
717222
720286
721593
724691
724699
725664
730173
730972
738671
752925
753755
757177
768754
774157
790260
792827
795812
796047
814121
814724
819737
825275
826256
]
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 (402997 , 436149 , 441877 , 442320 , 444607 , 445704 , 446794 , 453947 , 507800 , 508593 , 514811 , 520336 , 527879 , 529683 , 529689 , 529691 , 529996 , 530235 , 531600 , 534746 , 536145 , 537174 , 542729 , 545232 , 563958 , 563967 , 574648 , 579720 , 587907 , 588432 , 588503 , 593776 , 593810 , 603280 , 604318 , 617803 , 628950 , 635424 , 635751 , 636261 , 638168 , 638680 , 639687 , 645557 , 648195 , 666707 , 701447 , 701448 , 708878 , 710076 , 710940 , 717222 , 720286 , 721593 , 724691 , 724699 , 725664 , 730173 , 730972 , 738671 , 752925 , 753755 , 757177 , 768754 , 774157 , 790260 , 792827 , 795812 , 796047 , 814121 , 814724 , 819737 , 825275 , 826256 );
Copy