78.69 ms (24.52%)
1
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
44900
44998
45357
52454
58516
130054
157194
176394
183022
358864
381987
388887
389643
390629
399586
399609
401235
407697
408987
409946
410979
413946
415566
446381
453136
455048
458333
458836
466495
471429
477497
489173
491784
506743
507659
512694
515678
524987
591086
652683
654275
667741
667757
674100
708790
708817
727834
735544
735545
752506
758505
770998
772412
775880
797170
798579
803028
811109
812609
812743
818854
823170
827911
]
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 (44900 , 44998 , 45357 , 52454 , 58516 , 130054 , 157194 , 176394 , 183022 , 358864 , 381987 , 388887 , 389643 , 390629 , 399586 , 399609 , 401235 , 407697 , 408987 , 409946 , 410979 , 413946 , 415566 , 446381 , 453136 , 455048 , 458333 , 458836 , 466495 , 471429 , 477497 , 489173 , 491784 , 506743 , 507659 , 512694 , 515678 , 524987 , 591086 , 652683 , 654275 , 667741 , 667757 , 674100 , 708790 , 708817 , 727834 , 735544 , 735545 , 752506 , 758505 , 770998 , 772412 , 775880 , 797170 , 798579 , 803028 , 811109 , 812609 , 812743 , 818854 , 823170 , 827911 );
Copy
10.21 ms (3.18%)
1
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
772412
770998
803028
775880
708817
818854
674100
758505
130054
654275
727834
652683
667757
752506
515678
489173
176394
591086
453136
409946
381987
811109
44998
58516
410979
812609
827911
52454
812743
798579
408987
399586
407697
389643
44900
458836
735544
399609
667741
708790
823170
45357
183022
506743
735545
415566
507659
358864
466495
413946
446381
477497
512694
458333
491784
388887
455048
390629
524987
157194
401235
797170
471429
]
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 (772412 , 770998 , 803028 , 775880 , 708817 , 818854 , 674100 , 758505 , 130054 , 654275 , 727834 , 652683 , 667757 , 752506 , 515678 , 489173 , 176394 , 591086 , 453136 , 409946 , 381987 , 811109 , 44998 , 58516 , 410979 , 812609 , 827911 , 52454 , 812743 , 798579 , 408987 , 399586 , 407697 , 389643 , 44900 , 458836 , 735544 , 399609 , 667741 , 708790 , 823170 , 45357 , 183022 , 506743 , 735545 , 415566 , 507659 , 358864 , 466495 , 413946 , 446381 , 477497 , 512694 , 458333 , 491784 , 388887 , 455048 , 390629 , 524987 , 157194 , 401235 , 797170 , 471429 );
Copy
3.04 ms (0.95%)
1
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
44900
44998
45357
52454
58516
130054
157194
176394
183022
358864
381987
388887
389643
390629
399586
399609
401235
407697
408987
409946
410979
413946
415566
446381
453136
455048
458333
458836
466495
471429
477497
489173
491784
506743
507659
512694
515678
524987
591086
652683
654275
667741
667757
674100
708790
708817
727834
735544
735545
752506
758505
770998
772412
775880
797170
798579
803028
811109
812609
812743
818854
823170
827911
]
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 (44900 , 44998 , 45357 , 52454 , 58516 , 130054 , 157194 , 176394 , 183022 , 358864 , 381987 , 388887 , 389643 , 390629 , 399586 , 399609 , 401235 , 407697 , 408987 , 409946 , 410979 , 413946 , 415566 , 446381 , 453136 , 455048 , 458333 , 458836 , 466495 , 471429 , 477497 , 489173 , 491784 , 506743 , 507659 , 512694 , 515678 , 524987 , 591086 , 652683 , 654275 , 667741 , 667757 , 674100 , 708790 , 708817 , 727834 , 735544 , 735545 , 752506 , 758505 , 770998 , 772412 , 775880 , 797170 , 798579 , 803028 , 811109 , 812609 , 812743 , 818854 , 823170 , 827911 );
Copy