3
15.19 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
584688
471165
484681
466065
516769
421363
452097
419371
540954
428315
476706
544668
739535
473923
534288
531231
478051
643411
752563
480719
443299
422044
534021
541874
454709
499816
512059
536691
418934
442673
464368
456518
508441
524165
550571
476797
504133
646037
665139
665107
622241
472956
598859
401318
413901
735778
615818
448839
509552
514940
624841
543376
603009
534645
542192
542189
607374
506269
498280
647893
421839
687243
457064
639060
632304
512447
]
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 (584688 , 471165 , 484681 , 466065 , 516769 , 421363 , 452097 , 419371 , 540954 , 428315 , 476706 , 544668 , 739535 , 473923 , 534288 , 531231 , 478051 , 643411 , 752563 , 480719 , 443299 , 422044 , 534021 , 541874 , 454709 , 499816 , 512059 , 536691 , 418934 , 442673 , 464368 , 456518 , 508441 , 524165 , 550571 , 476797 , 504133 , 646037 , 665139 , 665107 , 622241 , 472956 , 598859 , 401318 , 413901 , 735778 , 615818 , 448839 , 509552 , 514940 , 624841 , 543376 , 603009 , 534645 , 542192 , 542189 , 607374 , 506269 , 498280 , 647893 , 421839 , 687243 , 457064 , 639060 , 632304 , 512447 );
Copy
4
2.79 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
401318
413901
418934
419371
421363
421839
422044
428315
442673
443299
448839
452097
454709
456518
457064
464368
466065
471165
472956
473923
476706
476797
478051
480719
484681
498280
499816
504133
506269
508441
509552
512059
512447
514940
516769
524165
531231
534021
534288
534645
536691
540954
541874
542189
542192
543376
544668
550571
584688
598859
603009
607374
615818
622241
624841
632304
639060
643411
646037
647893
665107
665139
687243
735778
739535
752563
]
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 (401318 , 413901 , 418934 , 419371 , 421363 , 421839 , 422044 , 428315 , 442673 , 443299 , 448839 , 452097 , 454709 , 456518 , 457064 , 464368 , 466065 , 471165 , 472956 , 473923 , 476706 , 476797 , 478051 , 480719 , 484681 , 498280 , 499816 , 504133 , 506269 , 508441 , 509552 , 512059 , 512447 , 514940 , 516769 , 524165 , 531231 , 534021 , 534288 , 534645 , 536691 , 540954 , 541874 , 542189 , 542192 , 543376 , 544668 , 550571 , 584688 , 598859 , 603009 , 607374 , 615818 , 622241 , 624841 , 632304 , 639060 , 643411 , 646037 , 647893 , 665107 , 665139 , 687243 , 735778 , 739535 , 752563 );
Copy
5
106.00 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
401318
413901
418934
419371
421363
421839
422044
428315
442673
443299
448839
452097
454709
456518
457064
464368
466065
471165
472956
473923
476706
476797
478051
480719
484681
498280
499816
504133
506269
508441
509552
512059
512447
514940
516769
524165
531231
534021
534288
534645
536691
540954
541874
542189
542192
543376
544668
550571
584688
598859
603009
607374
615818
622241
624841
632304
639060
643411
646037
647893
665107
665139
687243
735778
739535
752563
]
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 (401318 , 413901 , 418934 , 419371 , 421363 , 421839 , 422044 , 428315 , 442673 , 443299 , 448839 , 452097 , 454709 , 456518 , 457064 , 464368 , 466065 , 471165 , 472956 , 473923 , 476706 , 476797 , 478051 , 480719 , 484681 , 498280 , 499816 , 504133 , 506269 , 508441 , 509552 , 512059 , 512447 , 514940 , 516769 , 524165 , 531231 , 534021 , 534288 , 534645 , 536691 , 540954 , 541874 , 542189 , 542192 , 543376 , 544668 , 550571 , 584688 , 598859 , 603009 , 607374 , 615818 , 622241 , 624841 , 632304 , 639060 , 643411 , 646037 , 647893 , 665107 , 665139 , 687243 , 735778 , 739535 , 752563 );
Copy