3
11.48 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
727716
645132
450238
589533
730171
401392
728129
728535
730157
730495
728122
646114
801844
642935
666076
819028
653034
730496
644227
697933
809745
749638
693009
794435
628588
628618
578760
630725
577204
712241
747250
729376
433444
731257
718862
790753
587741
305336
612263
446649
612242
628644
544773
625713
728956
568540
560435
563637
578796
621136
605646
606946
785161
396881
717603
440827
628582
587703
635422
768581
514842
603509
509679
502554
593835
591413
518636
604050
527222
508494
520448
501209
507312
509713
524417
]
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 (727716 , 645132 , 450238 , 589533 , 730171 , 401392 , 728129 , 728535 , 730157 , 730495 , 728122 , 646114 , 801844 , 642935 , 666076 , 819028 , 653034 , 730496 , 644227 , 697933 , 809745 , 749638 , 693009 , 794435 , 628588 , 628618 , 578760 , 630725 , 577204 , 712241 , 747250 , 729376 , 433444 , 731257 , 718862 , 790753 , 587741 , 305336 , 612263 , 446649 , 612242 , 628644 , 544773 , 625713 , 728956 , 568540 , 560435 , 563637 , 578796 , 621136 , 605646 , 606946 , 785161 , 396881 , 717603 , 440827 , 628582 , 587703 , 635422 , 768581 , 514842 , 603509 , 509679 , 502554 , 593835 , 591413 , 518636 , 604050 , 527222 , 508494 , 520448 , 501209 , 507312 , 509713 , 524417 );
Copy
4
2.93 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
305336
396881
401392
433444
440827
446649
450238
501209
502554
507312
508494
509679
509713
514842
518636
520448
524417
527222
544773
560435
563637
568540
577204
578760
578796
587703
587741
589533
591413
593835
603509
604050
605646
606946
612242
612263
621136
625713
628582
628588
628618
628644
630725
635422
642935
644227
645132
646114
653034
666076
693009
697933
712241
717603
718862
727716
728122
728129
728535
728956
729376
730157
730171
730495
730496
731257
747250
749638
768581
785161
790753
794435
801844
809745
819028
]
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 (305336 , 396881 , 401392 , 433444 , 440827 , 446649 , 450238 , 501209 , 502554 , 507312 , 508494 , 509679 , 509713 , 514842 , 518636 , 520448 , 524417 , 527222 , 544773 , 560435 , 563637 , 568540 , 577204 , 578760 , 578796 , 587703 , 587741 , 589533 , 591413 , 593835 , 603509 , 604050 , 605646 , 606946 , 612242 , 612263 , 621136 , 625713 , 628582 , 628588 , 628618 , 628644 , 630725 , 635422 , 642935 , 644227 , 645132 , 646114 , 653034 , 666076 , 693009 , 697933 , 712241 , 717603 , 718862 , 727716 , 728122 , 728129 , 728535 , 728956 , 729376 , 730157 , 730171 , 730495 , 730496 , 731257 , 747250 , 749638 , 768581 , 785161 , 790753 , 794435 , 801844 , 809745 , 819028 );
Copy
5
83.18 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
305336
396881
401392
433444
440827
446649
450238
501209
502554
507312
508494
509679
509713
514842
518636
520448
524417
527222
544773
560435
563637
568540
577204
578760
578796
587703
587741
589533
591413
593835
603509
604050
605646
606946
612242
612263
621136
625713
628582
628588
628618
628644
630725
635422
642935
644227
645132
646114
653034
666076
693009
697933
712241
717603
718862
727716
728122
728129
728535
728956
729376
730157
730171
730495
730496
731257
747250
749638
768581
785161
790753
794435
801844
809745
819028
]
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 (305336 , 396881 , 401392 , 433444 , 440827 , 446649 , 450238 , 501209 , 502554 , 507312 , 508494 , 509679 , 509713 , 514842 , 518636 , 520448 , 524417 , 527222 , 544773 , 560435 , 563637 , 568540 , 577204 , 578760 , 578796 , 587703 , 587741 , 589533 , 591413 , 593835 , 603509 , 604050 , 605646 , 606946 , 612242 , 612263 , 621136 , 625713 , 628582 , 628588 , 628618 , 628644 , 630725 , 635422 , 642935 , 644227 , 645132 , 646114 , 653034 , 666076 , 693009 , 697933 , 712241 , 717603 , 718862 , 727716 , 728122 , 728129 , 728535 , 728956 , 729376 , 730157 , 730171 , 730495 , 730496 , 731257 , 747250 , 749638 , 768581 , 785161 , 790753 , 794435 , 801844 , 809745 , 819028 );
Copy