3
15.96 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
528164
504962
512971
511099
517123
526886
821370
454109
516324
540626
542533
553650
598190
435267
423829
442968
455729
512851
502974
483321
513098
507550
566295
613851
593279
618128
476520
507511
529229
552940
564647
549569
552458
593855
605762
447240
529556
490496
612507
608928
528040
514629
505538
519558
519849
567757
490508
524104
507285
567837
616933
619110
514640
553251
543389
645319
457834
525378
626885
620232
559725
562531
557039
562763
601886
662378
621520
591176
608771
582697
457676
605845
]
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 (528164 , 504962 , 512971 , 511099 , 517123 , 526886 , 821370 , 454109 , 516324 , 540626 , 542533 , 553650 , 598190 , 435267 , 423829 , 442968 , 455729 , 512851 , 502974 , 483321 , 513098 , 507550 , 566295 , 613851 , 593279 , 618128 , 476520 , 507511 , 529229 , 552940 , 564647 , 549569 , 552458 , 593855 , 605762 , 447240 , 529556 , 490496 , 612507 , 608928 , 528040 , 514629 , 505538 , 519558 , 519849 , 567757 , 490508 , 524104 , 507285 , 567837 , 616933 , 619110 , 514640 , 553251 , 543389 , 645319 , 457834 , 525378 , 626885 , 620232 , 559725 , 562531 , 557039 , 562763 , 601886 , 662378 , 621520 , 591176 , 608771 , 582697 , 457676 , 605845 );
Copy
4
2.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
423829
435267
442968
447240
454109
455729
457676
457834
476520
483321
490496
490508
502974
504962
505538
507285
507511
507550
511099
512851
512971
513098
514629
514640
516324
517123
519558
519849
524104
525378
526886
528040
528164
529229
529556
540626
542533
543389
549569
552458
552940
553251
553650
557039
559725
562531
562763
564647
566295
567757
567837
582697
591176
593279
593855
598190
601886
605762
605845
608771
608928
612507
613851
616933
618128
619110
620232
621520
626885
645319
662378
821370
]
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 (423829 , 435267 , 442968 , 447240 , 454109 , 455729 , 457676 , 457834 , 476520 , 483321 , 490496 , 490508 , 502974 , 504962 , 505538 , 507285 , 507511 , 507550 , 511099 , 512851 , 512971 , 513098 , 514629 , 514640 , 516324 , 517123 , 519558 , 519849 , 524104 , 525378 , 526886 , 528040 , 528164 , 529229 , 529556 , 540626 , 542533 , 543389 , 549569 , 552458 , 552940 , 553251 , 553650 , 557039 , 559725 , 562531 , 562763 , 564647 , 566295 , 567757 , 567837 , 582697 , 591176 , 593279 , 593855 , 598190 , 601886 , 605762 , 605845 , 608771 , 608928 , 612507 , 613851 , 616933 , 618128 , 619110 , 620232 , 621520 , 626885 , 645319 , 662378 , 821370 );
Copy
5
81.14 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
423829
435267
442968
447240
454109
455729
457676
457834
476520
483321
490496
490508
502974
504962
505538
507285
507511
507550
511099
512851
512971
513098
514629
514640
516324
517123
519558
519849
524104
525378
526886
528040
528164
529229
529556
540626
542533
543389
549569
552458
552940
553251
553650
557039
559725
562531
562763
564647
566295
567757
567837
582697
591176
593279
593855
598190
601886
605762
605845
608771
608928
612507
613851
616933
618128
619110
620232
621520
626885
645319
662378
821370
]
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 (423829 , 435267 , 442968 , 447240 , 454109 , 455729 , 457676 , 457834 , 476520 , 483321 , 490496 , 490508 , 502974 , 504962 , 505538 , 507285 , 507511 , 507550 , 511099 , 512851 , 512971 , 513098 , 514629 , 514640 , 516324 , 517123 , 519558 , 519849 , 524104 , 525378 , 526886 , 528040 , 528164 , 529229 , 529556 , 540626 , 542533 , 543389 , 549569 , 552458 , 552940 , 553251 , 553650 , 557039 , 559725 , 562531 , 562763 , 564647 , 566295 , 567757 , 567837 , 582697 , 591176 , 593279 , 593855 , 598190 , 601886 , 605762 , 605845 , 608771 , 608928 , 612507 , 613851 , 616933 , 618128 , 619110 , 620232 , 621520 , 626885 , 645319 , 662378 , 821370 );
Copy