91.76 ms (72.89%)
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
387366
398260
429748
434635
434638
437918
444180
444736
476208
477327
489390
492267
496100
504770
513499
513993
516442
520950
530554
533464
537035
551069
554306
554313
556427
562882
563856
567240
596054
607372
610588
650844
663370
663382
663428
663455
663460
663467
663482
663869
663978
665123
665397
665498
665862
666144
666769
667550
667552
667563
684117
684216
684913
687500
688110
688604
694715
704996
705584
764606
796914
799936
804902
810533
814181
818073
]
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 (387366 , 398260 , 429748 , 434635 , 434638 , 437918 , 444180 , 444736 , 476208 , 477327 , 489390 , 492267 , 496100 , 504770 , 513499 , 513993 , 516442 , 520950 , 530554 , 533464 , 537035 , 551069 , 554306 , 554313 , 556427 , 562882 , 563856 , 567240 , 596054 , 607372 , 610588 , 650844 , 663370 , 663382 , 663428 , 663455 , 663460 , 663467 , 663482 , 663869 , 663978 , 665123 , 665397 , 665498 , 665862 , 666144 , 666769 , 667550 , 667552 , 667563 , 684117 , 684216 , 684913 , 687500 , 688110 , 688604 , 694715 , 704996 , 705584 , 764606 , 796914 , 799936 , 804902 , 810533 , 814181 , 818073 );
Copy
11.90 ms (9.45%)
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
818073
666769
704996
663869
796914
665498
764606
663460
504770
567240
663382
666144
663978
665123
810533
804902
688110
663482
667552
663467
665862
688604
398260
437918
530554
533464
665397
705584
429748
684117
684216
663370
687500
684913
513993
814181
694715
562882
663455
444180
489390
554313
667550
516442
537035
667563
476208
513499
563856
554306
551069
556427
799936
477327
387366
444736
434635
663428
607372
650844
596054
496100
434638
520950
492267
610588
]
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 (818073 , 666769 , 704996 , 663869 , 796914 , 665498 , 764606 , 663460 , 504770 , 567240 , 663382 , 666144 , 663978 , 665123 , 810533 , 804902 , 688110 , 663482 , 667552 , 663467 , 665862 , 688604 , 398260 , 437918 , 530554 , 533464 , 665397 , 705584 , 429748 , 684117 , 684216 , 663370 , 687500 , 684913 , 513993 , 814181 , 694715 , 562882 , 663455 , 444180 , 489390 , 554313 , 667550 , 516442 , 537035 , 667563 , 476208 , 513499 , 563856 , 554306 , 551069 , 556427 , 799936 , 477327 , 387366 , 444736 , 434635 , 663428 , 607372 , 650844 , 596054 , 496100 , 434638 , 520950 , 492267 , 610588 );
Copy
2.94 ms (2.34%)
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
387366
398260
429748
434635
434638
437918
444180
444736
476208
477327
489390
492267
496100
504770
513499
513993
516442
520950
530554
533464
537035
551069
554306
554313
556427
562882
563856
567240
596054
607372
610588
650844
663370
663382
663428
663455
663460
663467
663482
663869
663978
665123
665397
665498
665862
666144
666769
667550
667552
667563
684117
684216
684913
687500
688110
688604
694715
704996
705584
764606
796914
799936
804902
810533
814181
818073
]
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 (387366 , 398260 , 429748 , 434635 , 434638 , 437918 , 444180 , 444736 , 476208 , 477327 , 489390 , 492267 , 496100 , 504770 , 513499 , 513993 , 516442 , 520950 , 530554 , 533464 , 537035 , 551069 , 554306 , 554313 , 556427 , 562882 , 563856 , 567240 , 596054 , 607372 , 610588 , 650844 , 663370 , 663382 , 663428 , 663455 , 663460 , 663467 , 663482 , 663869 , 663978 , 665123 , 665397 , 665498 , 665862 , 666144 , 666769 , 667550 , 667552 , 667563 , 684117 , 684216 , 684913 , 687500 , 688110 , 688604 , 694715 , 704996 , 705584 , 764606 , 796914 , 799936 , 804902 , 810533 , 814181 , 818073 );
Copy