3
12.68 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
528682
558788
824164
765552
456705
581929
470015
548130
634178
787557
425435
453337
552266
497872
438830
485147
580613
496756
519576
490577
824455
436178
447703
548128
749234
787506
423329
415329
508926
573212
512804
521481
555317
576901
564203
451138
477094
492340
493163
450274
542904
453037
586601
558886
541588
486643
444069
550633
547245
496874
527923
601101
502315
575661
457963
510108
600030
565281
593992
599987
555181
508371
458619
]
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 (528682 , 558788 , 824164 , 765552 , 456705 , 581929 , 470015 , 548130 , 634178 , 787557 , 425435 , 453337 , 552266 , 497872 , 438830 , 485147 , 580613 , 496756 , 519576 , 490577 , 824455 , 436178 , 447703 , 548128 , 749234 , 787506 , 423329 , 415329 , 508926 , 573212 , 512804 , 521481 , 555317 , 576901 , 564203 , 451138 , 477094 , 492340 , 493163 , 450274 , 542904 , 453037 , 586601 , 558886 , 541588 , 486643 , 444069 , 550633 , 547245 , 496874 , 527923 , 601101 , 502315 , 575661 , 457963 , 510108 , 600030 , 565281 , 593992 , 599987 , 555181 , 508371 , 458619 );
Copy
4
3.06 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
415329
423329
425435
436178
438830
444069
447703
450274
451138
453037
453337
456705
457963
458619
470015
477094
485147
486643
490577
492340
493163
496756
496874
497872
502315
508371
508926
510108
512804
519576
521481
527923
528682
541588
542904
547245
548128
548130
550633
552266
555181
555317
558788
558886
564203
565281
573212
575661
576901
580613
581929
586601
593992
599987
600030
601101
634178
749234
765552
787506
787557
824164
824455
]
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 (415329 , 423329 , 425435 , 436178 , 438830 , 444069 , 447703 , 450274 , 451138 , 453037 , 453337 , 456705 , 457963 , 458619 , 470015 , 477094 , 485147 , 486643 , 490577 , 492340 , 493163 , 496756 , 496874 , 497872 , 502315 , 508371 , 508926 , 510108 , 512804 , 519576 , 521481 , 527923 , 528682 , 541588 , 542904 , 547245 , 548128 , 548130 , 550633 , 552266 , 555181 , 555317 , 558788 , 558886 , 564203 , 565281 , 573212 , 575661 , 576901 , 580613 , 581929 , 586601 , 593992 , 599987 , 600030 , 601101 , 634178 , 749234 , 765552 , 787506 , 787557 , 824164 , 824455 );
Copy
5
72.40 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
415329
423329
425435
436178
438830
444069
447703
450274
451138
453037
453337
456705
457963
458619
470015
477094
485147
486643
490577
492340
493163
496756
496874
497872
502315
508371
508926
510108
512804
519576
521481
527923
528682
541588
542904
547245
548128
548130
550633
552266
555181
555317
558788
558886
564203
565281
573212
575661
576901
580613
581929
586601
593992
599987
600030
601101
634178
749234
765552
787506
787557
824164
824455
]
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 (415329 , 423329 , 425435 , 436178 , 438830 , 444069 , 447703 , 450274 , 451138 , 453037 , 453337 , 456705 , 457963 , 458619 , 470015 , 477094 , 485147 , 486643 , 490577 , 492340 , 493163 , 496756 , 496874 , 497872 , 502315 , 508371 , 508926 , 510108 , 512804 , 519576 , 521481 , 527923 , 528682 , 541588 , 542904 , 547245 , 548128 , 548130 , 550633 , 552266 , 555181 , 555317 , 558788 , 558886 , 564203 , 565281 , 573212 , 575661 , 576901 , 580613 , 581929 , 586601 , 593992 , 599987 , 600030 , 601101 , 634178 , 749234 , 765552 , 787506 , 787557 , 824164 , 824455 );
Copy