3
11.21 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
612548
593778
786933
726528
744316
796120
808077
446828
488551
496784
511895
652976
394610
620085
312730
717546
809233
404693
406646
434442
416312
459559
447614
537249
500221
506496
507213
519455
541201
581816
589105
610084
622074
617214
420352
708746
808964
429369
520037
511184
475923
567145
577409
544659
627817
462863
528532
452916
567046
592034
590930
601669
735604
446310
431432
478148
537184
516885
634801
497935
630552
516509
474989
510219
642444
607574
484233
628333
526813
438896
]
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 (612548 , 593778 , 786933 , 726528 , 744316 , 796120 , 808077 , 446828 , 488551 , 496784 , 511895 , 652976 , 394610 , 620085 , 312730 , 717546 , 809233 , 404693 , 406646 , 434442 , 416312 , 459559 , 447614 , 537249 , 500221 , 506496 , 507213 , 519455 , 541201 , 581816 , 589105 , 610084 , 622074 , 617214 , 420352 , 708746 , 808964 , 429369 , 520037 , 511184 , 475923 , 567145 , 577409 , 544659 , 627817 , 462863 , 528532 , 452916 , 567046 , 592034 , 590930 , 601669 , 735604 , 446310 , 431432 , 478148 , 537184 , 516885 , 634801 , 497935 , 630552 , 516509 , 474989 , 510219 , 642444 , 607574 , 484233 , 628333 , 526813 , 438896 );
Copy
4
3.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
312730
394610
404693
406646
416312
420352
429369
431432
434442
438896
446310
446828
447614
452916
459559
462863
474989
475923
478148
484233
488551
496784
497935
500221
506496
507213
510219
511184
511895
516509
516885
519455
520037
526813
528532
537184
537249
541201
544659
567046
567145
577409
581816
589105
590930
592034
593778
601669
607574
610084
612548
617214
620085
622074
627817
628333
630552
634801
642444
652976
708746
717546
726528
735604
744316
786933
796120
808077
808964
809233
]
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 (312730 , 394610 , 404693 , 406646 , 416312 , 420352 , 429369 , 431432 , 434442 , 438896 , 446310 , 446828 , 447614 , 452916 , 459559 , 462863 , 474989 , 475923 , 478148 , 484233 , 488551 , 496784 , 497935 , 500221 , 506496 , 507213 , 510219 , 511184 , 511895 , 516509 , 516885 , 519455 , 520037 , 526813 , 528532 , 537184 , 537249 , 541201 , 544659 , 567046 , 567145 , 577409 , 581816 , 589105 , 590930 , 592034 , 593778 , 601669 , 607574 , 610084 , 612548 , 617214 , 620085 , 622074 , 627817 , 628333 , 630552 , 634801 , 642444 , 652976 , 708746 , 717546 , 726528 , 735604 , 744316 , 786933 , 796120 , 808077 , 808964 , 809233 );
Copy
5
83.03 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
312730
394610
404693
406646
416312
420352
429369
431432
434442
438896
446310
446828
447614
452916
459559
462863
474989
475923
478148
484233
488551
496784
497935
500221
506496
507213
510219
511184
511895
516509
516885
519455
520037
526813
528532
537184
537249
541201
544659
567046
567145
577409
581816
589105
590930
592034
593778
601669
607574
610084
612548
617214
620085
622074
627817
628333
630552
634801
642444
652976
708746
717546
726528
735604
744316
786933
796120
808077
808964
809233
]
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 (312730 , 394610 , 404693 , 406646 , 416312 , 420352 , 429369 , 431432 , 434442 , 438896 , 446310 , 446828 , 447614 , 452916 , 459559 , 462863 , 474989 , 475923 , 478148 , 484233 , 488551 , 496784 , 497935 , 500221 , 506496 , 507213 , 510219 , 511184 , 511895 , 516509 , 516885 , 519455 , 520037 , 526813 , 528532 , 537184 , 537249 , 541201 , 544659 , 567046 , 567145 , 577409 , 581816 , 589105 , 590930 , 592034 , 593778 , 601669 , 607574 , 610084 , 612548 , 617214 , 620085 , 622074 , 627817 , 628333 , 630552 , 634801 , 642444 , 652976 , 708746 , 717546 , 726528 , 735604 , 744316 , 786933 , 796120 , 808077 , 808964 , 809233 );
Copy