3
14.71 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
651136
722909
601975
601696
617152
721102
637447
771477
91541
765095
820947
791531
529025
758528
759786
733841
817526
758721
402385
806842
811906
733845
777081
494698
390303
815466
675815
406339
468708
603056
589749
422922
628362
640777
416185
494143
593577
491487
581174
676154
590821
402715
614095
622704
686845
398440
448616
556307
586600
595337
634158
476430
512333
549839
693965
382060
805773
584090
679733
508199
468010
549584
507591
486445
603709
500581
653537
489113
429084
]
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 (651136 , 722909 , 601975 , 601696 , 617152 , 721102 , 637447 , 771477 , 91541 , 765095 , 820947 , 791531 , 529025 , 758528 , 759786 , 733841 , 817526 , 758721 , 402385 , 806842 , 811906 , 733845 , 777081 , 494698 , 390303 , 815466 , 675815 , 406339 , 468708 , 603056 , 589749 , 422922 , 628362 , 640777 , 416185 , 494143 , 593577 , 491487 , 581174 , 676154 , 590821 , 402715 , 614095 , 622704 , 686845 , 398440 , 448616 , 556307 , 586600 , 595337 , 634158 , 476430 , 512333 , 549839 , 693965 , 382060 , 805773 , 584090 , 679733 , 508199 , 468010 , 549584 , 507591 , 486445 , 603709 , 500581 , 653537 , 489113 , 429084 );
Copy
4
2.58 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
91541
382060
390303
398440
402385
402715
406339
416185
422922
429084
448616
468010
468708
476430
486445
489113
491487
494143
494698
500581
507591
508199
512333
529025
549584
549839
556307
581174
584090
586600
589749
590821
593577
595337
601696
601975
603056
603709
614095
617152
622704
628362
634158
637447
640777
651136
653537
675815
676154
679733
686845
693965
721102
722909
733841
733845
758528
758721
759786
765095
771477
777081
791531
805773
806842
811906
815466
817526
820947
]
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 (91541 , 382060 , 390303 , 398440 , 402385 , 402715 , 406339 , 416185 , 422922 , 429084 , 448616 , 468010 , 468708 , 476430 , 486445 , 489113 , 491487 , 494143 , 494698 , 500581 , 507591 , 508199 , 512333 , 529025 , 549584 , 549839 , 556307 , 581174 , 584090 , 586600 , 589749 , 590821 , 593577 , 595337 , 601696 , 601975 , 603056 , 603709 , 614095 , 617152 , 622704 , 628362 , 634158 , 637447 , 640777 , 651136 , 653537 , 675815 , 676154 , 679733 , 686845 , 693965 , 721102 , 722909 , 733841 , 733845 , 758528 , 758721 , 759786 , 765095 , 771477 , 777081 , 791531 , 805773 , 806842 , 811906 , 815466 , 817526 , 820947 );
Copy
5
78.85 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
91541
382060
390303
398440
402385
402715
406339
416185
422922
429084
448616
468010
468708
476430
486445
489113
491487
494143
494698
500581
507591
508199
512333
529025
549584
549839
556307
581174
584090
586600
589749
590821
593577
595337
601696
601975
603056
603709
614095
617152
622704
628362
634158
637447
640777
651136
653537
675815
676154
679733
686845
693965
721102
722909
733841
733845
758528
758721
759786
765095
771477
777081
791531
805773
806842
811906
815466
817526
820947
]
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 (91541 , 382060 , 390303 , 398440 , 402385 , 402715 , 406339 , 416185 , 422922 , 429084 , 448616 , 468010 , 468708 , 476430 , 486445 , 489113 , 491487 , 494143 , 494698 , 500581 , 507591 , 508199 , 512333 , 529025 , 549584 , 549839 , 556307 , 581174 , 584090 , 586600 , 589749 , 590821 , 593577 , 595337 , 601696 , 601975 , 603056 , 603709 , 614095 , 617152 , 622704 , 628362 , 634158 , 637447 , 640777 , 651136 , 653537 , 675815 , 676154 , 679733 , 686845 , 693965 , 721102 , 722909 , 733841 , 733845 , 758528 , 758721 , 759786 , 765095 , 771477 , 777081 , 791531 , 805773 , 806842 , 811906 , 815466 , 817526 , 820947 );
Copy