3
11.36 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
743658
666419
668700
778563
743634
811702
743641
742636
564281
453397
588939
781909
391923
620330
391921
526747
741750
554488
562426
463982
470410
579510
706889
562418
578169
781925
459469
398972
391940
528512
459474
464017
466992
560828
641807
609071
781924
796829
757724
464031
459472
456312
495040
499472
444913
444918
541078
555055
567063
592985
599354
459476
525468
464023
467029
507643
507640
542724
590418
444915
510425
463973
761039
453408
491436
]
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 (743658 , 666419 , 668700 , 778563 , 743634 , 811702 , 743641 , 742636 , 564281 , 453397 , 588939 , 781909 , 391923 , 620330 , 391921 , 526747 , 741750 , 554488 , 562426 , 463982 , 470410 , 579510 , 706889 , 562418 , 578169 , 781925 , 459469 , 398972 , 391940 , 528512 , 459474 , 464017 , 466992 , 560828 , 641807 , 609071 , 781924 , 796829 , 757724 , 464031 , 459472 , 456312 , 495040 , 499472 , 444913 , 444918 , 541078 , 555055 , 567063 , 592985 , 599354 , 459476 , 525468 , 464023 , 467029 , 507643 , 507640 , 542724 , 590418 , 444915 , 510425 , 463973 , 761039 , 453408 , 491436 );
Copy
4
5.61 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
391921
391923
391940
398972
444913
444915
444918
453397
453408
456312
459469
459472
459474
459476
463973
463982
464017
464023
464031
466992
467029
470410
491436
495040
499472
507640
507643
510425
525468
526747
528512
541078
542724
554488
555055
560828
562418
562426
564281
567063
578169
579510
588939
590418
592985
599354
609071
620330
641807
666419
668700
706889
741750
742636
743634
743641
743658
757724
761039
778563
781909
781924
781925
796829
811702
]
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 (391921 , 391923 , 391940 , 398972 , 444913 , 444915 , 444918 , 453397 , 453408 , 456312 , 459469 , 459472 , 459474 , 459476 , 463973 , 463982 , 464017 , 464023 , 464031 , 466992 , 467029 , 470410 , 491436 , 495040 , 499472 , 507640 , 507643 , 510425 , 525468 , 526747 , 528512 , 541078 , 542724 , 554488 , 555055 , 560828 , 562418 , 562426 , 564281 , 567063 , 578169 , 579510 , 588939 , 590418 , 592985 , 599354 , 609071 , 620330 , 641807 , 666419 , 668700 , 706889 , 741750 , 742636 , 743634 , 743641 , 743658 , 757724 , 761039 , 778563 , 781909 , 781924 , 781925 , 796829 , 811702 );
Copy
5
71.73 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
391921
391923
391940
398972
444913
444915
444918
453397
453408
456312
459469
459472
459474
459476
463973
463982
464017
464023
464031
466992
467029
470410
491436
495040
499472
507640
507643
510425
525468
526747
528512
541078
542724
554488
555055
560828
562418
562426
564281
567063
578169
579510
588939
590418
592985
599354
609071
620330
641807
666419
668700
706889
741750
742636
743634
743641
743658
757724
761039
778563
781909
781924
781925
796829
811702
]
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 (391921 , 391923 , 391940 , 398972 , 444913 , 444915 , 444918 , 453397 , 453408 , 456312 , 459469 , 459472 , 459474 , 459476 , 463973 , 463982 , 464017 , 464023 , 464031 , 466992 , 467029 , 470410 , 491436 , 495040 , 499472 , 507640 , 507643 , 510425 , 525468 , 526747 , 528512 , 541078 , 542724 , 554488 , 555055 , 560828 , 562418 , 562426 , 564281 , 567063 , 578169 , 579510 , 588939 , 590418 , 592985 , 599354 , 609071 , 620330 , 641807 , 666419 , 668700 , 706889 , 741750 , 742636 , 743634 , 743641 , 743658 , 757724 , 761039 , 778563 , 781909 , 781924 , 781925 , 796829 , 811702 );
Copy