69.30 ms (44.83%)
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
395818
401318
404584
404876
413901
415109
417801
419370
425523
426551
428372
429572
434310
442673
444003
445436
445471
448807
448816
451951
457963
463842
464139
464328
466885
466982
466989
468630
484681
484727
485454
486685
487746
492534
494694
494985
508180
508523
512447
513025
522556
529213
531511
541588
541614
541640
541643
541667
541683
541871
541874
541886
541888
549233
551763
556535
573393
576623
583533
610606
625342
626337
639760
649953
650380
650851
724305
]
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 (395818 , 401318 , 404584 , 404876 , 413901 , 415109 , 417801 , 419370 , 425523 , 426551 , 428372 , 429572 , 434310 , 442673 , 444003 , 445436 , 445471 , 448807 , 448816 , 451951 , 457963 , 463842 , 464139 , 464328 , 466885 , 466982 , 466989 , 468630 , 484681 , 484727 , 485454 , 486685 , 487746 , 492534 , 494694 , 494985 , 508180 , 508523 , 512447 , 513025 , 522556 , 529213 , 531511 , 541588 , 541614 , 541640 , 541643 , 541667 , 541683 , 541871 , 541874 , 541886 , 541888 , 549233 , 551763 , 556535 , 573393 , 576623 , 583533 , 610606 , 625342 , 626337 , 639760 , 649953 , 650380 , 650851 , 724305 );
Copy
13.83 ms (8.95%)
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
549233
650380
508180
445471
492534
583533
625342
425523
576623
451951
395818
444003
494694
419370
541886
428372
484681
445436
522556
487746
484727
541667
529213
639760
486685
466982
404876
415109
724305
551763
413901
541643
531511
448807
429572
541874
442673
401318
649953
468630
556535
426551
417801
466885
513025
541888
541614
541640
650851
626337
610606
448816
464328
508523
573393
434310
541683
404584
463842
464139
541871
457963
485454
541588
494985
512447
466989
]
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 (549233 , 650380 , 508180 , 445471 , 492534 , 583533 , 625342 , 425523 , 576623 , 451951 , 395818 , 444003 , 494694 , 419370 , 541886 , 428372 , 484681 , 445436 , 522556 , 487746 , 484727 , 541667 , 529213 , 639760 , 486685 , 466982 , 404876 , 415109 , 724305 , 551763 , 413901 , 541643 , 531511 , 448807 , 429572 , 541874 , 442673 , 401318 , 649953 , 468630 , 556535 , 426551 , 417801 , 466885 , 513025 , 541888 , 541614 , 541640 , 650851 , 626337 , 610606 , 448816 , 464328 , 508523 , 573393 , 434310 , 541683 , 404584 , 463842 , 464139 , 541871 , 457963 , 485454 , 541588 , 494985 , 512447 , 466989 );
Copy
2.04 ms (1.32%)
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
395818
401318
404584
404876
413901
415109
417801
419370
425523
426551
428372
429572
434310
442673
444003
445436
445471
448807
448816
451951
457963
463842
464139
464328
466885
466982
466989
468630
484681
484727
485454
486685
487746
492534
494694
494985
508180
508523
512447
513025
522556
529213
531511
541588
541614
541640
541643
541667
541683
541871
541874
541886
541888
549233
551763
556535
573393
576623
583533
610606
625342
626337
639760
649953
650380
650851
724305
]
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 (395818 , 401318 , 404584 , 404876 , 413901 , 415109 , 417801 , 419370 , 425523 , 426551 , 428372 , 429572 , 434310 , 442673 , 444003 , 445436 , 445471 , 448807 , 448816 , 451951 , 457963 , 463842 , 464139 , 464328 , 466885 , 466982 , 466989 , 468630 , 484681 , 484727 , 485454 , 486685 , 487746 , 492534 , 494694 , 494985 , 508180 , 508523 , 512447 , 513025 , 522556 , 529213 , 531511 , 541588 , 541614 , 541640 , 541643 , 541667 , 541683 , 541871 , 541874 , 541886 , 541888 , 549233 , 551763 , 556535 , 573393 , 576623 , 583533 , 610606 , 625342 , 626337 , 639760 , 649953 , 650380 , 650851 , 724305 );
Copy