3
10.84 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
769487
532048
478103
758342
483398
577687
784855
798235
407500
538972
560883
632750
721582
791710
442360
623649
696426
494667
796864
626308
476316
713757
560699
441839
460190
569164
603008
460461
439743
560827
587922
625649
450309
493391
456960
446020
421931
523773
504408
501000
420261
650450
805977
403649
621200
445393
449693
669213
687503
809064
463621
529141
587014
627009
576649
415779
620756
430837
518736
454496
624902
528144
439736
520826
439738
569532
523781
526630
416841
535511
402985
513076
494066
]
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 (769487 , 532048 , 478103 , 758342 , 483398 , 577687 , 784855 , 798235 , 407500 , 538972 , 560883 , 632750 , 721582 , 791710 , 442360 , 623649 , 696426 , 494667 , 796864 , 626308 , 476316 , 713757 , 560699 , 441839 , 460190 , 569164 , 603008 , 460461 , 439743 , 560827 , 587922 , 625649 , 450309 , 493391 , 456960 , 446020 , 421931 , 523773 , 504408 , 501000 , 420261 , 650450 , 805977 , 403649 , 621200 , 445393 , 449693 , 669213 , 687503 , 809064 , 463621 , 529141 , 587014 , 627009 , 576649 , 415779 , 620756 , 430837 , 518736 , 454496 , 624902 , 528144 , 439736 , 520826 , 439738 , 569532 , 523781 , 526630 , 416841 , 535511 , 402985 , 513076 , 494066 );
Copy
4
3.03 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
402985
403649
407500
415779
416841
420261
421931
430837
439736
439738
439743
441839
442360
445393
446020
449693
450309
454496
456960
460190
460461
463621
476316
478103
483398
493391
494066
494667
501000
504408
513076
518736
520826
523773
523781
526630
528144
529141
532048
535511
538972
560699
560827
560883
569164
569532
576649
577687
587014
587922
603008
620756
621200
623649
624902
625649
626308
627009
632750
650450
669213
687503
696426
713757
721582
758342
769487
784855
791710
796864
798235
805977
809064
]
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 (402985 , 403649 , 407500 , 415779 , 416841 , 420261 , 421931 , 430837 , 439736 , 439738 , 439743 , 441839 , 442360 , 445393 , 446020 , 449693 , 450309 , 454496 , 456960 , 460190 , 460461 , 463621 , 476316 , 478103 , 483398 , 493391 , 494066 , 494667 , 501000 , 504408 , 513076 , 518736 , 520826 , 523773 , 523781 , 526630 , 528144 , 529141 , 532048 , 535511 , 538972 , 560699 , 560827 , 560883 , 569164 , 569532 , 576649 , 577687 , 587014 , 587922 , 603008 , 620756 , 621200 , 623649 , 624902 , 625649 , 626308 , 627009 , 632750 , 650450 , 669213 , 687503 , 696426 , 713757 , 721582 , 758342 , 769487 , 784855 , 791710 , 796864 , 798235 , 805977 , 809064 );
Copy
5
83.77 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
402985
403649
407500
415779
416841
420261
421931
430837
439736
439738
439743
441839
442360
445393
446020
449693
450309
454496
456960
460190
460461
463621
476316
478103
483398
493391
494066
494667
501000
504408
513076
518736
520826
523773
523781
526630
528144
529141
532048
535511
538972
560699
560827
560883
569164
569532
576649
577687
587014
587922
603008
620756
621200
623649
624902
625649
626308
627009
632750
650450
669213
687503
696426
713757
721582
758342
769487
784855
791710
796864
798235
805977
809064
]
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 (402985 , 403649 , 407500 , 415779 , 416841 , 420261 , 421931 , 430837 , 439736 , 439738 , 439743 , 441839 , 442360 , 445393 , 446020 , 449693 , 450309 , 454496 , 456960 , 460190 , 460461 , 463621 , 476316 , 478103 , 483398 , 493391 , 494066 , 494667 , 501000 , 504408 , 513076 , 518736 , 520826 , 523773 , 523781 , 526630 , 528144 , 529141 , 532048 , 535511 , 538972 , 560699 , 560827 , 560883 , 569164 , 569532 , 576649 , 577687 , 587014 , 587922 , 603008 , 620756 , 621200 , 623649 , 624902 , 625649 , 626308 , 627009 , 632750 , 650450 , 669213 , 687503 , 696426 , 713757 , 721582 , 758342 , 769487 , 784855 , 791710 , 796864 , 798235 , 805977 , 809064 );
Copy