3
10.30 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
579309
549995
540882
548457
798843
579288
584211
812954
777184
791094
789387
722094
796603
547898
549474
689940
589260
726987
416177
822377
738054
746060
396603
579302
654638
682633
677604
549464
751417
752154
385577
705405
710433
589197
787024
773961
733324
472373
769378
564804
579281
689520
590624
586038
807748
776614
759470
809603
413117
458435
618332
587685
628289
477607
579040
689004
668508
578845
579088
486977
415693
516060
501263
472206
579311
805020
758891
468531
494949
511062
579292
579312
752158
579301
534994
]
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 (579309 , 549995 , 540882 , 548457 , 798843 , 579288 , 584211 , 812954 , 777184 , 791094 , 789387 , 722094 , 796603 , 547898 , 549474 , 689940 , 589260 , 726987 , 416177 , 822377 , 738054 , 746060 , 396603 , 579302 , 654638 , 682633 , 677604 , 549464 , 751417 , 752154 , 385577 , 705405 , 710433 , 589197 , 787024 , 773961 , 733324 , 472373 , 769378 , 564804 , 579281 , 689520 , 590624 , 586038 , 807748 , 776614 , 759470 , 809603 , 413117 , 458435 , 618332 , 587685 , 628289 , 477607 , 579040 , 689004 , 668508 , 578845 , 579088 , 486977 , 415693 , 516060 , 501263 , 472206 , 579311 , 805020 , 758891 , 468531 , 494949 , 511062 , 579292 , 579312 , 752158 , 579301 , 534994 );
Copy
4
2.60 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
385577
396603
413117
415693
416177
458435
468531
472206
472373
477607
486977
494949
501263
511062
516060
534994
540882
547898
548457
549464
549474
549995
564804
578845
579040
579088
579281
579288
579292
579301
579302
579309
579311
579312
584211
586038
587685
589197
589260
590624
618332
628289
654638
668508
677604
682633
689004
689520
689940
705405
710433
722094
726987
733324
738054
746060
751417
752154
752158
758891
759470
769378
773961
776614
777184
787024
789387
791094
796603
798843
805020
807748
809603
812954
822377
]
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 (385577 , 396603 , 413117 , 415693 , 416177 , 458435 , 468531 , 472206 , 472373 , 477607 , 486977 , 494949 , 501263 , 511062 , 516060 , 534994 , 540882 , 547898 , 548457 , 549464 , 549474 , 549995 , 564804 , 578845 , 579040 , 579088 , 579281 , 579288 , 579292 , 579301 , 579302 , 579309 , 579311 , 579312 , 584211 , 586038 , 587685 , 589197 , 589260 , 590624 , 618332 , 628289 , 654638 , 668508 , 677604 , 682633 , 689004 , 689520 , 689940 , 705405 , 710433 , 722094 , 726987 , 733324 , 738054 , 746060 , 751417 , 752154 , 752158 , 758891 , 759470 , 769378 , 773961 , 776614 , 777184 , 787024 , 789387 , 791094 , 796603 , 798843 , 805020 , 807748 , 809603 , 812954 , 822377 );
Copy
5
99.98 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
385577
396603
413117
415693
416177
458435
468531
472206
472373
477607
486977
494949
501263
511062
516060
534994
540882
547898
548457
549464
549474
549995
564804
578845
579040
579088
579281
579288
579292
579301
579302
579309
579311
579312
584211
586038
587685
589197
589260
590624
618332
628289
654638
668508
677604
682633
689004
689520
689940
705405
710433
722094
726987
733324
738054
746060
751417
752154
752158
758891
759470
769378
773961
776614
777184
787024
789387
791094
796603
798843
805020
807748
809603
812954
822377
]
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 (385577 , 396603 , 413117 , 415693 , 416177 , 458435 , 468531 , 472206 , 472373 , 477607 , 486977 , 494949 , 501263 , 511062 , 516060 , 534994 , 540882 , 547898 , 548457 , 549464 , 549474 , 549995 , 564804 , 578845 , 579040 , 579088 , 579281 , 579288 , 579292 , 579301 , 579302 , 579309 , 579311 , 579312 , 584211 , 586038 , 587685 , 589197 , 589260 , 590624 , 618332 , 628289 , 654638 , 668508 , 677604 , 682633 , 689004 , 689520 , 689940 , 705405 , 710433 , 722094 , 726987 , 733324 , 738054 , 746060 , 751417 , 752154 , 752158 , 758891 , 759470 , 769378 , 773961 , 776614 , 777184 , 787024 , 789387 , 791094 , 796603 , 798843 , 805020 , 807748 , 809603 , 812954 , 822377 );
Copy