4
10.24 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
592125
641501
768411
592740
533536
431086
814902
554654
760000
550954
580964
755689
807830
814447
809915
566719
598893
435736
828750
591595
517233
800112
800775
823190
563866
721155
383117
51900
815989
822482
821388
777358
405481
696688
727405
32923
265846
816011
181060
820783
800867
278428
815695
816455
397308
452229
454657
566247
473761
460247
382129
462474
395711
454636
520020
612439
457959
595787
414433
434723
444654
512952
]
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 (592125 , 641501 , 768411 , 592740 , 533536 , 431086 , 814902 , 554654 , 760000 , 550954 , 580964 , 755689 , 807830 , 814447 , 809915 , 566719 , 598893 , 435736 , 828750 , 591595 , 517233 , 800112 , 800775 , 823190 , 563866 , 721155 , 383117 , 51900 , 815989 , 822482 , 821388 , 777358 , 405481 , 696688 , 727405 , 32923 , 265846 , 816011 , 181060 , 820783 , 800867 , 278428 , 815695 , 816455 , 397308 , 452229 , 454657 , 566247 , 473761 , 460247 , 382129 , 462474 , 395711 , 454636 , 520020 , 612439 , 457959 , 595787 , 414433 , 434723 , 444654 , 512952 );
Copy
5
2.94 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
32923
51900
181060
265846
278428
382129
383117
395711
397308
405481
414433
431086
434723
435736
444654
452229
454636
454657
457959
460247
462474
473761
512952
517233
520020
533536
550954
554654
563866
566247
566719
580964
591595
592125
592740
595787
598893
612439
641501
696688
721155
727405
755689
760000
768411
777358
800112
800775
800867
807830
809915
814447
814902
815695
815989
816011
816455
820783
821388
822482
823190
828750
]
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 (32923 , 51900 , 181060 , 265846 , 278428 , 382129 , 383117 , 395711 , 397308 , 405481 , 414433 , 431086 , 434723 , 435736 , 444654 , 452229 , 454636 , 454657 , 457959 , 460247 , 462474 , 473761 , 512952 , 517233 , 520020 , 533536 , 550954 , 554654 , 563866 , 566247 , 566719 , 580964 , 591595 , 592125 , 592740 , 595787 , 598893 , 612439 , 641501 , 696688 , 721155 , 727405 , 755689 , 760000 , 768411 , 777358 , 800112 , 800775 , 800867 , 807830 , 809915 , 814447 , 814902 , 815695 , 815989 , 816011 , 816455 , 820783 , 821388 , 822482 , 823190 , 828750 );
Copy
6
90.53 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
32923
51900
181060
265846
278428
382129
383117
395711
397308
405481
414433
431086
434723
435736
444654
452229
454636
454657
457959
460247
462474
473761
512952
517233
520020
533536
550954
554654
563866
566247
566719
580964
591595
592125
592740
595787
598893
612439
641501
696688
721155
727405
755689
760000
768411
777358
800112
800775
800867
807830
809915
814447
814902
815695
815989
816011
816455
820783
821388
822482
823190
828750
]
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 (32923 , 51900 , 181060 , 265846 , 278428 , 382129 , 383117 , 395711 , 397308 , 405481 , 414433 , 431086 , 434723 , 435736 , 444654 , 452229 , 454636 , 454657 , 457959 , 460247 , 462474 , 473761 , 512952 , 517233 , 520020 , 533536 , 550954 , 554654 , 563866 , 566247 , 566719 , 580964 , 591595 , 592125 , 592740 , 595787 , 598893 , 612439 , 641501 , 696688 , 721155 , 727405 , 755689 , 760000 , 768411 , 777358 , 800112 , 800775 , 800867 , 807830 , 809915 , 814447 , 814902 , 815695 , 815989 , 816011 , 816455 , 820783 , 821388 , 822482 , 823190 , 828750 );
Copy