3
10.32 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
383475
739573
771756
828550
716151
786435
810480
662863
716232
753506
675446
695721
778023
802595
755146
755140
719449
812446
791757
616217
793303
760881
455546
426806
499439
695801
695714
801654
753489
804070
744454
746587
697513
435572
786052
603739
433789
515618
515702
540713
560064
552761
677854
545490
564381
626209
591972
433429
517813
527821
559239
542978
730688
761517
605108
432486
489768
670974
601118
828217
590510
513564
524608
447180
523411
433218
]
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 (383475 , 739573 , 771756 , 828550 , 716151 , 786435 , 810480 , 662863 , 716232 , 753506 , 675446 , 695721 , 778023 , 802595 , 755146 , 755140 , 719449 , 812446 , 791757 , 616217 , 793303 , 760881 , 455546 , 426806 , 499439 , 695801 , 695714 , 801654 , 753489 , 804070 , 744454 , 746587 , 697513 , 435572 , 786052 , 603739 , 433789 , 515618 , 515702 , 540713 , 560064 , 552761 , 677854 , 545490 , 564381 , 626209 , 591972 , 433429 , 517813 , 527821 , 559239 , 542978 , 730688 , 761517 , 605108 , 432486 , 489768 , 670974 , 601118 , 828217 , 590510 , 513564 , 524608 , 447180 , 523411 , 433218 );
Copy
4
3.43 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
383475
426806
432486
433218
433429
433789
435572
447180
455546
489768
499439
513564
515618
515702
517813
523411
524608
527821
540713
542978
545490
552761
559239
560064
564381
590510
591972
601118
603739
605108
616217
626209
662863
670974
675446
677854
695714
695721
695801
697513
716151
716232
719449
730688
739573
744454
746587
753489
753506
755140
755146
760881
761517
771756
778023
786052
786435
791757
793303
801654
802595
804070
810480
812446
828217
828550
]
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 (383475 , 426806 , 432486 , 433218 , 433429 , 433789 , 435572 , 447180 , 455546 , 489768 , 499439 , 513564 , 515618 , 515702 , 517813 , 523411 , 524608 , 527821 , 540713 , 542978 , 545490 , 552761 , 559239 , 560064 , 564381 , 590510 , 591972 , 601118 , 603739 , 605108 , 616217 , 626209 , 662863 , 670974 , 675446 , 677854 , 695714 , 695721 , 695801 , 697513 , 716151 , 716232 , 719449 , 730688 , 739573 , 744454 , 746587 , 753489 , 753506 , 755140 , 755146 , 760881 , 761517 , 771756 , 778023 , 786052 , 786435 , 791757 , 793303 , 801654 , 802595 , 804070 , 810480 , 812446 , 828217 , 828550 );
Copy
5
92.27 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
383475
426806
432486
433218
433429
433789
435572
447180
455546
489768
499439
513564
515618
515702
517813
523411
524608
527821
540713
542978
545490
552761
559239
560064
564381
590510
591972
601118
603739
605108
616217
626209
662863
670974
675446
677854
695714
695721
695801
697513
716151
716232
719449
730688
739573
744454
746587
753489
753506
755140
755146
760881
761517
771756
778023
786052
786435
791757
793303
801654
802595
804070
810480
812446
828217
828550
]
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 (383475 , 426806 , 432486 , 433218 , 433429 , 433789 , 435572 , 447180 , 455546 , 489768 , 499439 , 513564 , 515618 , 515702 , 517813 , 523411 , 524608 , 527821 , 540713 , 542978 , 545490 , 552761 , 559239 , 560064 , 564381 , 590510 , 591972 , 601118 , 603739 , 605108 , 616217 , 626209 , 662863 , 670974 , 675446 , 677854 , 695714 , 695721 , 695801 , 697513 , 716151 , 716232 , 719449 , 730688 , 739573 , 744454 , 746587 , 753489 , 753506 , 755140 , 755146 , 760881 , 761517 , 771756 , 778023 , 786052 , 786435 , 791757 , 793303 , 801654 , 802595 , 804070 , 810480 , 812446 , 828217 , 828550 );
Copy