91.84 ms (76.04%)
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
418195
428890
432597
435277
442626
446069
454508
461245
461774
463403
463895
465066
468965
472624
476597
479457
480993
483401
486869
486871
487656
488212
493551
493842
495246
495324
496376
501667
502616
503742
504152
507077
512848
513445
514105
517283
518988
519081
519227
519721
523260
526369
534280
538967
545772
552987
561393
575852
579746
582722
584333
592095
592153
593574
594505
596354
597887
599194
606949
623179
624915
624933
635050
]
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 (418195 , 428890 , 432597 , 435277 , 442626 , 446069 , 454508 , 461245 , 461774 , 463403 , 463895 , 465066 , 468965 , 472624 , 476597 , 479457 , 480993 , 483401 , 486869 , 486871 , 487656 , 488212 , 493551 , 493842 , 495246 , 495324 , 496376 , 501667 , 502616 , 503742 , 504152 , 507077 , 512848 , 513445 , 514105 , 517283 , 518988 , 519081 , 519227 , 519721 , 523260 , 526369 , 534280 , 538967 , 545772 , 552987 , 561393 , 575852 , 579746 , 582722 , 584333 , 592095 , 592153 , 593574 , 594505 , 596354 , 597887 , 599194 , 606949 , 623179 , 624915 , 624933 , 635050 );
Copy
12.03 ms (9.96%)
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
606949
635050
480993
461774
454508
418195
461245
507077
538967
495246
496376
487656
504152
442626
435277
479457
493551
463403
472624
495324
514105
561393
582722
584333
575852
579746
624933
597887
592095
592153
594505
428890
465066
432597
463895
513445
519081
501667
518988
488212
483401
517283
599194
624915
596354
446069
493842
502616
503742
519227
519721
476597
534280
526369
623179
486869
552987
545772
512848
468965
523260
486871
593574
]
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 (606949 , 635050 , 480993 , 461774 , 454508 , 418195 , 461245 , 507077 , 538967 , 495246 , 496376 , 487656 , 504152 , 442626 , 435277 , 479457 , 493551 , 463403 , 472624 , 495324 , 514105 , 561393 , 582722 , 584333 , 575852 , 579746 , 624933 , 597887 , 592095 , 592153 , 594505 , 428890 , 465066 , 432597 , 463895 , 513445 , 519081 , 501667 , 518988 , 488212 , 483401 , 517283 , 599194 , 624915 , 596354 , 446069 , 493842 , 502616 , 503742 , 519227 , 519721 , 476597 , 534280 , 526369 , 623179 , 486869 , 552987 , 545772 , 512848 , 468965 , 523260 , 486871 , 593574 );
Copy
2.87 ms (2.38%)
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
418195
428890
432597
435277
442626
446069
454508
461245
461774
463403
463895
465066
468965
472624
476597
479457
480993
483401
486869
486871
487656
488212
493551
493842
495246
495324
496376
501667
502616
503742
504152
507077
512848
513445
514105
517283
518988
519081
519227
519721
523260
526369
534280
538967
545772
552987
561393
575852
579746
582722
584333
592095
592153
593574
594505
596354
597887
599194
606949
623179
624915
624933
635050
]
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 (418195 , 428890 , 432597 , 435277 , 442626 , 446069 , 454508 , 461245 , 461774 , 463403 , 463895 , 465066 , 468965 , 472624 , 476597 , 479457 , 480993 , 483401 , 486869 , 486871 , 487656 , 488212 , 493551 , 493842 , 495246 , 495324 , 496376 , 501667 , 502616 , 503742 , 504152 , 507077 , 512848 , 513445 , 514105 , 517283 , 518988 , 519081 , 519227 , 519721 , 523260 , 526369 , 534280 , 538967 , 545772 , 552987 , 561393 , 575852 , 579746 , 582722 , 584333 , 592095 , 592153 , 593574 , 594505 , 596354 , 597887 , 599194 , 606949 , 623179 , 624915 , 624933 , 635050 );
Copy