89.59 ms (56.78%)
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
143235
382851
385702
389167
394186
398018
398916
406565
424637
424780
431019
440759
447023
451011
454625
457275
464512
472928
480263
482405
485748
488783
494076
501522
504376
508167
508803
511100
513361
513454
515733
516163
518268
520402
521698
522238
523360
534512
538294
548875
554370
557984
558835
560851
565382
566538
566611
568555
570863
580004
587896
590878
605456
609628
609652
617167
621407
624428
625322
630781
695411
731517
781075
786243
]
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 (143235 , 382851 , 385702 , 389167 , 394186 , 398018 , 398916 , 406565 , 424637 , 424780 , 431019 , 440759 , 447023 , 451011 , 454625 , 457275 , 464512 , 472928 , 480263 , 482405 , 485748 , 488783 , 494076 , 501522 , 504376 , 508167 , 508803 , 511100 , 513361 , 513454 , 515733 , 516163 , 518268 , 520402 , 521698 , 522238 , 523360 , 534512 , 538294 , 548875 , 554370 , 557984 , 558835 , 560851 , 565382 , 566538 , 566611 , 568555 , 570863 , 580004 , 587896 , 590878 , 605456 , 609628 , 609652 , 617167 , 621407 , 624428 , 625322 , 630781 , 695411 , 731517 , 781075 , 786243 );
Copy
11.40 ms (7.23%)
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
488783
695411
394186
731517
440759
538294
520402
786243
534512
570863
451011
447023
494076
389167
521698
511100
472928
518268
566611
630781
609628
504376
605456
621407
609652
560851
424780
587896
554370
580004
548875
516163
482405
385702
781075
398018
508803
398916
464512
513361
382851
565382
558835
406565
143235
557984
480263
454625
501522
522238
424637
508167
515733
431019
513454
457275
485748
617167
625322
568555
566538
624428
523360
590878
]
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 (488783 , 695411 , 394186 , 731517 , 440759 , 538294 , 520402 , 786243 , 534512 , 570863 , 451011 , 447023 , 494076 , 389167 , 521698 , 511100 , 472928 , 518268 , 566611 , 630781 , 609628 , 504376 , 605456 , 621407 , 609652 , 560851 , 424780 , 587896 , 554370 , 580004 , 548875 , 516163 , 482405 , 385702 , 781075 , 398018 , 508803 , 398916 , 464512 , 513361 , 382851 , 565382 , 558835 , 406565 , 143235 , 557984 , 480263 , 454625 , 501522 , 522238 , 424637 , 508167 , 515733 , 431019 , 513454 , 457275 , 485748 , 617167 , 625322 , 568555 , 566538 , 624428 , 523360 , 590878 );
Copy
3.23 ms (2.05%)
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
143235
382851
385702
389167
394186
398018
398916
406565
424637
424780
431019
440759
447023
451011
454625
457275
464512
472928
480263
482405
485748
488783
494076
501522
504376
508167
508803
511100
513361
513454
515733
516163
518268
520402
521698
522238
523360
534512
538294
548875
554370
557984
558835
560851
565382
566538
566611
568555
570863
580004
587896
590878
605456
609628
609652
617167
621407
624428
625322
630781
695411
731517
781075
786243
]
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 (143235 , 382851 , 385702 , 389167 , 394186 , 398018 , 398916 , 406565 , 424637 , 424780 , 431019 , 440759 , 447023 , 451011 , 454625 , 457275 , 464512 , 472928 , 480263 , 482405 , 485748 , 488783 , 494076 , 501522 , 504376 , 508167 , 508803 , 511100 , 513361 , 513454 , 515733 , 516163 , 518268 , 520402 , 521698 , 522238 , 523360 , 534512 , 538294 , 548875 , 554370 , 557984 , 558835 , 560851 , 565382 , 566538 , 566611 , 568555 , 570863 , 580004 , 587896 , 590878 , 605456 , 609628 , 609652 , 617167 , 621407 , 624428 , 625322 , 630781 , 695411 , 731517 , 781075 , 786243 );
Copy