4
11.73 ms
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
521928
483593
534571
485160
525360
429594
472154
478994
527756
511427
500911
514200
514652
493311
563084
565948
574428
559350
605703
608541
604080
604551
422168
428415
395527
439682
439732
454564
422184
500125
501081
520270
501374
519309
507963
515868
460327
502816
498045
540910
558622
553061
557226
558984
576701
553545
574869
422199
481964
463929
480439
439728
455337
496977
522307
511838
516772
605372
464487
476085
426994
514660
541207
546669
590930
406121
439812
478981
620124
584049
623692
453313
]
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 (521928 , 483593 , 534571 , 485160 , 525360 , 429594 , 472154 , 478994 , 527756 , 511427 , 500911 , 514200 , 514652 , 493311 , 563084 , 565948 , 574428 , 559350 , 605703 , 608541 , 604080 , 604551 , 422168 , 428415 , 395527 , 439682 , 439732 , 454564 , 422184 , 500125 , 501081 , 520270 , 501374 , 519309 , 507963 , 515868 , 460327 , 502816 , 498045 , 540910 , 558622 , 553061 , 557226 , 558984 , 576701 , 553545 , 574869 , 422199 , 481964 , 463929 , 480439 , 439728 , 455337 , 496977 , 522307 , 511838 , 516772 , 605372 , 464487 , 476085 , 426994 , 514660 , 541207 , 546669 , 590930 , 406121 , 439812 , 478981 , 620124 , 584049 , 623692 , 453313 );
Copy
5
2.97 ms
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
395527
406121
422168
422184
422199
426994
428415
429594
439682
439728
439732
439812
453313
454564
455337
460327
463929
464487
472154
476085
478981
478994
480439
481964
483593
485160
493311
496977
498045
500125
500911
501081
501374
502816
507963
511427
511838
514200
514652
514660
515868
516772
519309
520270
521928
522307
525360
527756
534571
540910
541207
546669
553061
553545
557226
558622
558984
559350
563084
565948
574428
574869
576701
584049
590930
604080
604551
605372
605703
608541
620124
623692
]
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 (395527 , 406121 , 422168 , 422184 , 422199 , 426994 , 428415 , 429594 , 439682 , 439728 , 439732 , 439812 , 453313 , 454564 , 455337 , 460327 , 463929 , 464487 , 472154 , 476085 , 478981 , 478994 , 480439 , 481964 , 483593 , 485160 , 493311 , 496977 , 498045 , 500125 , 500911 , 501081 , 501374 , 502816 , 507963 , 511427 , 511838 , 514200 , 514652 , 514660 , 515868 , 516772 , 519309 , 520270 , 521928 , 522307 , 525360 , 527756 , 534571 , 540910 , 541207 , 546669 , 553061 , 553545 , 557226 , 558622 , 558984 , 559350 , 563084 , 565948 , 574428 , 574869 , 576701 , 584049 , 590930 , 604080 , 604551 , 605372 , 605703 , 608541 , 620124 , 623692 );
Copy
6
137.33 ms
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
395527
406121
422168
422184
422199
426994
428415
429594
439682
439728
439732
439812
453313
454564
455337
460327
463929
464487
472154
476085
478981
478994
480439
481964
483593
485160
493311
496977
498045
500125
500911
501081
501374
502816
507963
511427
511838
514200
514652
514660
515868
516772
519309
520270
521928
522307
525360
527756
534571
540910
541207
546669
553061
553545
557226
558622
558984
559350
563084
565948
574428
574869
576701
584049
590930
604080
604551
605372
605703
608541
620124
623692
]
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 (395527 , 406121 , 422168 , 422184 , 422199 , 426994 , 428415 , 429594 , 439682 , 439728 , 439732 , 439812 , 453313 , 454564 , 455337 , 460327 , 463929 , 464487 , 472154 , 476085 , 478981 , 478994 , 480439 , 481964 , 483593 , 485160 , 493311 , 496977 , 498045 , 500125 , 500911 , 501081 , 501374 , 502816 , 507963 , 511427 , 511838 , 514200 , 514652 , 514660 , 515868 , 516772 , 519309 , 520270 , 521928 , 522307 , 525360 , 527756 , 534571 , 540910 , 541207 , 546669 , 553061 , 553545 , 557226 , 558622 , 558984 , 559350 , 563084 , 565948 , 574428 , 574869 , 576701 , 584049 , 590930 , 604080 , 604551 , 605372 , 605703 , 608541 , 620124 , 623692 );
Copy