3
11.31 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
601988
731480
469635
452006
511709
453323
450556
453571
449697
427237
453334
429460
453578
458732
525360
453584
525048
450291
453579
470505
486450
512855
501623
486459
546744
653861
526875
598846
472312
561132
582680
458314
428092
444849
546779
525407
459316
453321
453547
446947
461909
502249
571241
494276
569417
579546
546747
561117
456090
509513
461904
515724
453326
429610
486199
576325
624806
486444
491022
467678
512693
561382
452248
519171
451945
503659
472252
523401
632252
504133
447810
663537
606136
608106
608771
]
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 (601988 , 731480 , 469635 , 452006 , 511709 , 453323 , 450556 , 453571 , 449697 , 427237 , 453334 , 429460 , 453578 , 458732 , 525360 , 453584 , 525048 , 450291 , 453579 , 470505 , 486450 , 512855 , 501623 , 486459 , 546744 , 653861 , 526875 , 598846 , 472312 , 561132 , 582680 , 458314 , 428092 , 444849 , 546779 , 525407 , 459316 , 453321 , 453547 , 446947 , 461909 , 502249 , 571241 , 494276 , 569417 , 579546 , 546747 , 561117 , 456090 , 509513 , 461904 , 515724 , 453326 , 429610 , 486199 , 576325 , 624806 , 486444 , 491022 , 467678 , 512693 , 561382 , 452248 , 519171 , 451945 , 503659 , 472252 , 523401 , 632252 , 504133 , 447810 , 663537 , 606136 , 608106 , 608771 );
Copy
4
207.73 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
427237
428092
429460
429610
444849
446947
447810
449697
450291
450556
451945
452006
452248
453321
453323
453326
453334
453547
453571
453578
453579
453584
456090
458314
458732
459316
461904
461909
467678
469635
470505
472252
472312
486199
486444
486450
486459
491022
494276
501623
502249
503659
504133
509513
511709
512693
512855
515724
519171
523401
525048
525360
525407
526875
546744
546747
546779
561117
561132
561382
569417
571241
576325
579546
582680
598846
601988
606136
608106
608771
624806
632252
653861
663537
731480
]
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 (427237 , 428092 , 429460 , 429610 , 444849 , 446947 , 447810 , 449697 , 450291 , 450556 , 451945 , 452006 , 452248 , 453321 , 453323 , 453326 , 453334 , 453547 , 453571 , 453578 , 453579 , 453584 , 456090 , 458314 , 458732 , 459316 , 461904 , 461909 , 467678 , 469635 , 470505 , 472252 , 472312 , 486199 , 486444 , 486450 , 486459 , 491022 , 494276 , 501623 , 502249 , 503659 , 504133 , 509513 , 511709 , 512693 , 512855 , 515724 , 519171 , 523401 , 525048 , 525360 , 525407 , 526875 , 546744 , 546747 , 546779 , 561117 , 561132 , 561382 , 569417 , 571241 , 576325 , 579546 , 582680 , 598846 , 601988 , 606136 , 608106 , 608771 , 624806 , 632252 , 653861 , 663537 , 731480 );
Copy
5
92.40 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
427237
428092
429460
429610
444849
446947
447810
449697
450291
450556
451945
452006
452248
453321
453323
453326
453334
453547
453571
453578
453579
453584
456090
458314
458732
459316
461904
461909
467678
469635
470505
472252
472312
486199
486444
486450
486459
491022
494276
501623
502249
503659
504133
509513
511709
512693
512855
515724
519171
523401
525048
525360
525407
526875
546744
546747
546779
561117
561132
561382
569417
571241
576325
579546
582680
598846
601988
606136
608106
608771
624806
632252
653861
663537
731480
]
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 (427237 , 428092 , 429460 , 429610 , 444849 , 446947 , 447810 , 449697 , 450291 , 450556 , 451945 , 452006 , 452248 , 453321 , 453323 , 453326 , 453334 , 453547 , 453571 , 453578 , 453579 , 453584 , 456090 , 458314 , 458732 , 459316 , 461904 , 461909 , 467678 , 469635 , 470505 , 472252 , 472312 , 486199 , 486444 , 486450 , 486459 , 491022 , 494276 , 501623 , 502249 , 503659 , 504133 , 509513 , 511709 , 512693 , 512855 , 515724 , 519171 , 523401 , 525048 , 525360 , 525407 , 526875 , 546744 , 546747 , 546779 , 561117 , 561132 , 561382 , 569417 , 571241 , 576325 , 579546 , 582680 , 598846 , 601988 , 606136 , 608106 , 608771 , 624806 , 632252 , 653861 , 663537 , 731480 );
Copy