3
9.37 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
636053
766874
605066
805675
812141
410429
497887
488844
382491
428616
473094
547889
565551
584180
543317
660582
604227
598753
614605
601226
810665
426021
425773
520126
497317
492994
404368
422550
422834
422584
456482
510622
526105
500600
500726
560442
564001
594422
600123
640732
588818
623204
464520
464714
492575
556485
648560
451620
536586
530494
567779
571029
559942
423400
463873
422705
494618
522604
464168
565162
593193
584873
680182
545393
589107
618525
545300
634187
601537
543772
612455
513207
]
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 (636053 , 766874 , 605066 , 805675 , 812141 , 410429 , 497887 , 488844 , 382491 , 428616 , 473094 , 547889 , 565551 , 584180 , 543317 , 660582 , 604227 , 598753 , 614605 , 601226 , 810665 , 426021 , 425773 , 520126 , 497317 , 492994 , 404368 , 422550 , 422834 , 422584 , 456482 , 510622 , 526105 , 500600 , 500726 , 560442 , 564001 , 594422 , 600123 , 640732 , 588818 , 623204 , 464520 , 464714 , 492575 , 556485 , 648560 , 451620 , 536586 , 530494 , 567779 , 571029 , 559942 , 423400 , 463873 , 422705 , 494618 , 522604 , 464168 , 565162 , 593193 , 584873 , 680182 , 545393 , 589107 , 618525 , 545300 , 634187 , 601537 , 543772 , 612455 , 513207 );
Copy
4
3.07 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
382491
404368
410429
422550
422584
422705
422834
423400
425773
426021
428616
451620
456482
463873
464168
464520
464714
473094
488844
492575
492994
494618
497317
497887
500600
500726
510622
513207
520126
522604
526105
530494
536586
543317
543772
545300
545393
547889
556485
559942
560442
564001
565162
565551
567779
571029
584180
584873
588818
589107
593193
594422
598753
600123
601226
601537
604227
605066
612455
614605
618525
623204
634187
636053
640732
648560
660582
680182
766874
805675
810665
812141
]
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 (382491 , 404368 , 410429 , 422550 , 422584 , 422705 , 422834 , 423400 , 425773 , 426021 , 428616 , 451620 , 456482 , 463873 , 464168 , 464520 , 464714 , 473094 , 488844 , 492575 , 492994 , 494618 , 497317 , 497887 , 500600 , 500726 , 510622 , 513207 , 520126 , 522604 , 526105 , 530494 , 536586 , 543317 , 543772 , 545300 , 545393 , 547889 , 556485 , 559942 , 560442 , 564001 , 565162 , 565551 , 567779 , 571029 , 584180 , 584873 , 588818 , 589107 , 593193 , 594422 , 598753 , 600123 , 601226 , 601537 , 604227 , 605066 , 612455 , 614605 , 618525 , 623204 , 634187 , 636053 , 640732 , 648560 , 660582 , 680182 , 766874 , 805675 , 810665 , 812141 );
Copy
5
82.58 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
382491
404368
410429
422550
422584
422705
422834
423400
425773
426021
428616
451620
456482
463873
464168
464520
464714
473094
488844
492575
492994
494618
497317
497887
500600
500726
510622
513207
520126
522604
526105
530494
536586
543317
543772
545300
545393
547889
556485
559942
560442
564001
565162
565551
567779
571029
584180
584873
588818
589107
593193
594422
598753
600123
601226
601537
604227
605066
612455
614605
618525
623204
634187
636053
640732
648560
660582
680182
766874
805675
810665
812141
]
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 (382491 , 404368 , 410429 , 422550 , 422584 , 422705 , 422834 , 423400 , 425773 , 426021 , 428616 , 451620 , 456482 , 463873 , 464168 , 464520 , 464714 , 473094 , 488844 , 492575 , 492994 , 494618 , 497317 , 497887 , 500600 , 500726 , 510622 , 513207 , 520126 , 522604 , 526105 , 530494 , 536586 , 543317 , 543772 , 545300 , 545393 , 547889 , 556485 , 559942 , 560442 , 564001 , 565162 , 565551 , 567779 , 571029 , 584180 , 584873 , 588818 , 589107 , 593193 , 594422 , 598753 , 600123 , 601226 , 601537 , 604227 , 605066 , 612455 , 614605 , 618525 , 623204 , 634187 , 636053 , 640732 , 648560 , 660582 , 680182 , 766874 , 805675 , 810665 , 812141 );
Copy