3
13.45 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
498247
552859
525523
571971
508625
517200
553003
491719
599317
494617
605643
533914
571025
619414
572734
545549
504187
599698
559806
606688
516647
535356
547585
584872
583914
600432
590456
498342
510578
575302
563906
546640
586584
637737
464335
474034
503565
523122
518577
531347
525180
556630
566003
562770
583933
629762
598348
521047
508098
543576
581738
683952
600965
595284
612413
475781
500288
582407
615714
550277
584724
621756
609803
]
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 (498247 , 552859 , 525523 , 571971 , 508625 , 517200 , 553003 , 491719 , 599317 , 494617 , 605643 , 533914 , 571025 , 619414 , 572734 , 545549 , 504187 , 599698 , 559806 , 606688 , 516647 , 535356 , 547585 , 584872 , 583914 , 600432 , 590456 , 498342 , 510578 , 575302 , 563906 , 546640 , 586584 , 637737 , 464335 , 474034 , 503565 , 523122 , 518577 , 531347 , 525180 , 556630 , 566003 , 562770 , 583933 , 629762 , 598348 , 521047 , 508098 , 543576 , 581738 , 683952 , 600965 , 595284 , 612413 , 475781 , 500288 , 582407 , 615714 , 550277 , 584724 , 621756 , 609803 );
Copy
4
2.14 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
464335
474034
475781
491719
494617
498247
498342
500288
503565
504187
508098
508625
510578
516647
517200
518577
521047
523122
525180
525523
531347
533914
535356
543576
545549
546640
547585
550277
552859
553003
556630
559806
562770
563906
566003
571025
571971
572734
575302
581738
582407
583914
583933
584724
584872
586584
590456
595284
598348
599317
599698
600432
600965
605643
606688
609803
612413
615714
619414
621756
629762
637737
683952
]
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 (464335 , 474034 , 475781 , 491719 , 494617 , 498247 , 498342 , 500288 , 503565 , 504187 , 508098 , 508625 , 510578 , 516647 , 517200 , 518577 , 521047 , 523122 , 525180 , 525523 , 531347 , 533914 , 535356 , 543576 , 545549 , 546640 , 547585 , 550277 , 552859 , 553003 , 556630 , 559806 , 562770 , 563906 , 566003 , 571025 , 571971 , 572734 , 575302 , 581738 , 582407 , 583914 , 583933 , 584724 , 584872 , 586584 , 590456 , 595284 , 598348 , 599317 , 599698 , 600432 , 600965 , 605643 , 606688 , 609803 , 612413 , 615714 , 619414 , 621756 , 629762 , 637737 , 683952 );
Copy
5
107.39 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
464335
474034
475781
491719
494617
498247
498342
500288
503565
504187
508098
508625
510578
516647
517200
518577
521047
523122
525180
525523
531347
533914
535356
543576
545549
546640
547585
550277
552859
553003
556630
559806
562770
563906
566003
571025
571971
572734
575302
581738
582407
583914
583933
584724
584872
586584
590456
595284
598348
599317
599698
600432
600965
605643
606688
609803
612413
615714
619414
621756
629762
637737
683952
]
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 (464335 , 474034 , 475781 , 491719 , 494617 , 498247 , 498342 , 500288 , 503565 , 504187 , 508098 , 508625 , 510578 , 516647 , 517200 , 518577 , 521047 , 523122 , 525180 , 525523 , 531347 , 533914 , 535356 , 543576 , 545549 , 546640 , 547585 , 550277 , 552859 , 553003 , 556630 , 559806 , 562770 , 563906 , 566003 , 571025 , 571971 , 572734 , 575302 , 581738 , 582407 , 583914 , 583933 , 584724 , 584872 , 586584 , 590456 , 595284 , 598348 , 599317 , 599698 , 600432 , 600965 , 605643 , 606688 , 609803 , 612413 , 615714 , 619414 , 621756 , 629762 , 637737 , 683952 );
Copy