3
12.04 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
817613
729290
729285
450682
538887
614047
723158
793892
811844
762804
801246
424105
454533
432708
432735
627409
432727
777168
626760
475056
454552
463839
117806
358410
432699
464696
414135
780650
554913
524804
506529
458383
457776
425356
673142
397478
454535
817507
432692
810382
554830
432650
467457
605918
555095
484106
461704
585744
443593
460263
797351
592417
517125
572867
500963
434971
559959
480687
565246
444831
524501
572869
508293
468042
433733
542187
]
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 (817613 , 729290 , 729285 , 450682 , 538887 , 614047 , 723158 , 793892 , 811844 , 762804 , 801246 , 424105 , 454533 , 432708 , 432735 , 627409 , 432727 , 777168 , 626760 , 475056 , 454552 , 463839 , 117806 , 358410 , 432699 , 464696 , 414135 , 780650 , 554913 , 524804 , 506529 , 458383 , 457776 , 425356 , 673142 , 397478 , 454535 , 817507 , 432692 , 810382 , 554830 , 432650 , 467457 , 605918 , 555095 , 484106 , 461704 , 585744 , 443593 , 460263 , 797351 , 592417 , 517125 , 572867 , 500963 , 434971 , 559959 , 480687 , 565246 , 444831 , 524501 , 572869 , 508293 , 468042 , 433733 , 542187 );
Copy
4
2.70 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
117806
358410
397478
414135
424105
425356
432650
432692
432699
432708
432727
432735
433733
434971
443593
444831
450682
454533
454535
454552
457776
458383
460263
461704
463839
464696
467457
468042
475056
480687
484106
500963
506529
508293
517125
524501
524804
538887
542187
554830
554913
555095
559959
565246
572867
572869
585744
592417
605918
614047
626760
627409
673142
723158
729285
729290
762804
777168
780650
793892
797351
801246
810382
811844
817507
817613
]
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 (117806 , 358410 , 397478 , 414135 , 424105 , 425356 , 432650 , 432692 , 432699 , 432708 , 432727 , 432735 , 433733 , 434971 , 443593 , 444831 , 450682 , 454533 , 454535 , 454552 , 457776 , 458383 , 460263 , 461704 , 463839 , 464696 , 467457 , 468042 , 475056 , 480687 , 484106 , 500963 , 506529 , 508293 , 517125 , 524501 , 524804 , 538887 , 542187 , 554830 , 554913 , 555095 , 559959 , 565246 , 572867 , 572869 , 585744 , 592417 , 605918 , 614047 , 626760 , 627409 , 673142 , 723158 , 729285 , 729290 , 762804 , 777168 , 780650 , 793892 , 797351 , 801246 , 810382 , 811844 , 817507 , 817613 );
Copy
5
72.48 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
117806
358410
397478
414135
424105
425356
432650
432692
432699
432708
432727
432735
433733
434971
443593
444831
450682
454533
454535
454552
457776
458383
460263
461704
463839
464696
467457
468042
475056
480687
484106
500963
506529
508293
517125
524501
524804
538887
542187
554830
554913
555095
559959
565246
572867
572869
585744
592417
605918
614047
626760
627409
673142
723158
729285
729290
762804
777168
780650
793892
797351
801246
810382
811844
817507
817613
]
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 (117806 , 358410 , 397478 , 414135 , 424105 , 425356 , 432650 , 432692 , 432699 , 432708 , 432727 , 432735 , 433733 , 434971 , 443593 , 444831 , 450682 , 454533 , 454535 , 454552 , 457776 , 458383 , 460263 , 461704 , 463839 , 464696 , 467457 , 468042 , 475056 , 480687 , 484106 , 500963 , 506529 , 508293 , 517125 , 524501 , 524804 , 538887 , 542187 , 554830 , 554913 , 555095 , 559959 , 565246 , 572867 , 572869 , 585744 , 592417 , 605918 , 614047 , 626760 , 627409 , 673142 , 723158 , 729285 , 729290 , 762804 , 777168 , 780650 , 793892 , 797351 , 801246 , 810382 , 811844 , 817507 , 817613 );
Copy