3
13.05 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
792038
828073
632794
825101
780146
411574
467878
750932
791781
792973
698844
764096
689980
666861
607988
813299
730841
479867
767927
735294
425088
473326
509441
813595
532361
693794
621116
728377
744569
438702
451249
511612
577627
692478
808971
759179
508444
445343
666445
672159
493401
476932
701522
701184
573274
580130
582097
591143
527291
655183
625737
791504
421514
445351
488060
549786
518255
510899
603184
413740
507524
546641
591331
588745
438725
421196
512042
567863
557985
]
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 (792038 , 828073 , 632794 , 825101 , 780146 , 411574 , 467878 , 750932 , 791781 , 792973 , 698844 , 764096 , 689980 , 666861 , 607988 , 813299 , 730841 , 479867 , 767927 , 735294 , 425088 , 473326 , 509441 , 813595 , 532361 , 693794 , 621116 , 728377 , 744569 , 438702 , 451249 , 511612 , 577627 , 692478 , 808971 , 759179 , 508444 , 445343 , 666445 , 672159 , 493401 , 476932 , 701522 , 701184 , 573274 , 580130 , 582097 , 591143 , 527291 , 655183 , 625737 , 791504 , 421514 , 445351 , 488060 , 549786 , 518255 , 510899 , 603184 , 413740 , 507524 , 546641 , 591331 , 588745 , 438725 , 421196 , 512042 , 567863 , 557985 );
Copy
4
2.28 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
411574
413740
421196
421514
425088
438702
438725
445343
445351
451249
467878
473326
476932
479867
488060
493401
507524
508444
509441
510899
511612
512042
518255
527291
532361
546641
549786
557985
567863
573274
577627
580130
582097
588745
591143
591331
603184
607988
621116
625737
632794
655183
666445
666861
672159
689980
692478
693794
698844
701184
701522
728377
730841
735294
744569
750932
759179
764096
767927
780146
791504
791781
792038
792973
808971
813299
813595
825101
]
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 (411574 , 413740 , 421196 , 421514 , 425088 , 438702 , 438725 , 445343 , 445351 , 451249 , 467878 , 473326 , 476932 , 479867 , 488060 , 493401 , 507524 , 508444 , 509441 , 510899 , 511612 , 512042 , 518255 , 527291 , 532361 , 546641 , 549786 , 557985 , 567863 , 573274 , 577627 , 580130 , 582097 , 588745 , 591143 , 591331 , 603184 , 607988 , 621116 , 625737 , 632794 , 655183 , 666445 , 666861 , 672159 , 689980 , 692478 , 693794 , 698844 , 701184 , 701522 , 728377 , 730841 , 735294 , 744569 , 750932 , 759179 , 764096 , 767927 , 780146 , 791504 , 791781 , 792038 , 792973 , 808971 , 813299 , 813595 , 825101 );
Copy
5
89.52 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
411574
413740
421196
421514
425088
438702
438725
445343
445351
451249
467878
473326
476932
479867
488060
493401
507524
508444
509441
510899
511612
512042
518255
527291
532361
546641
549786
557985
567863
573274
577627
580130
582097
588745
591143
591331
603184
607988
621116
625737
632794
655183
666445
666861
672159
689980
692478
693794
698844
701184
701522
728377
730841
735294
744569
750932
759179
764096
767927
780146
791504
791781
792038
792973
808971
813299
813595
825101
]
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 (411574 , 413740 , 421196 , 421514 , 425088 , 438702 , 438725 , 445343 , 445351 , 451249 , 467878 , 473326 , 476932 , 479867 , 488060 , 493401 , 507524 , 508444 , 509441 , 510899 , 511612 , 512042 , 518255 , 527291 , 532361 , 546641 , 549786 , 557985 , 567863 , 573274 , 577627 , 580130 , 582097 , 588745 , 591143 , 591331 , 603184 , 607988 , 621116 , 625737 , 632794 , 655183 , 666445 , 666861 , 672159 , 689980 , 692478 , 693794 , 698844 , 701184 , 701522 , 728377 , 730841 , 735294 , 744569 , 750932 , 759179 , 764096 , 767927 , 780146 , 791504 , 791781 , 792038 , 792973 , 808971 , 813299 , 813595 , 825101 );
Copy