3
14.30 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
808077
510275
531304
719427
600883
724178
681310
600968
469288
533063
471881
491859
619399
464932
541838
541336
651285
789690
426197
505691
514601
463748
692887
756479
696947
592478
491380
650774
633753
532982
670957
667647
803659
419123
554413
604473
562832
96029
412261
516991
410935
430081
484624
532913
486438
450317
413929
416166
408262
533007
814901
631902
577435
609906
623264
468733
678095
587185
543607
583701
572026
543881
601324
594231
568045
]
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 (808077 , 510275 , 531304 , 719427 , 600883 , 724178 , 681310 , 600968 , 469288 , 533063 , 471881 , 491859 , 619399 , 464932 , 541838 , 541336 , 651285 , 789690 , 426197 , 505691 , 514601 , 463748 , 692887 , 756479 , 696947 , 592478 , 491380 , 650774 , 633753 , 532982 , 670957 , 667647 , 803659 , 419123 , 554413 , 604473 , 562832 , 96029 , 412261 , 516991 , 410935 , 430081 , 484624 , 532913 , 486438 , 450317 , 413929 , 416166 , 408262 , 533007 , 814901 , 631902 , 577435 , 609906 , 623264 , 468733 , 678095 , 587185 , 543607 , 583701 , 572026 , 543881 , 601324 , 594231 , 568045 );
Copy
4
2.74 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
96029
408262
410935
412261
413929
416166
419123
426197
430081
450317
463748
464932
468733
469288
471881
484624
486438
491380
491859
505691
510275
514601
516991
531304
532913
532982
533007
533063
541336
541838
543607
543881
554413
562832
568045
572026
577435
583701
587185
592478
594231
600883
600968
601324
604473
609906
619399
623264
631902
633753
650774
651285
667647
670957
678095
681310
692887
696947
719427
724178
756479
789690
803659
808077
814901
]
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 (96029 , 408262 , 410935 , 412261 , 413929 , 416166 , 419123 , 426197 , 430081 , 450317 , 463748 , 464932 , 468733 , 469288 , 471881 , 484624 , 486438 , 491380 , 491859 , 505691 , 510275 , 514601 , 516991 , 531304 , 532913 , 532982 , 533007 , 533063 , 541336 , 541838 , 543607 , 543881 , 554413 , 562832 , 568045 , 572026 , 577435 , 583701 , 587185 , 592478 , 594231 , 600883 , 600968 , 601324 , 604473 , 609906 , 619399 , 623264 , 631902 , 633753 , 650774 , 651285 , 667647 , 670957 , 678095 , 681310 , 692887 , 696947 , 719427 , 724178 , 756479 , 789690 , 803659 , 808077 , 814901 );
Copy
5
100.54 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
96029
408262
410935
412261
413929
416166
419123
426197
430081
450317
463748
464932
468733
469288
471881
484624
486438
491380
491859
505691
510275
514601
516991
531304
532913
532982
533007
533063
541336
541838
543607
543881
554413
562832
568045
572026
577435
583701
587185
592478
594231
600883
600968
601324
604473
609906
619399
623264
631902
633753
650774
651285
667647
670957
678095
681310
692887
696947
719427
724178
756479
789690
803659
808077
814901
]
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 (96029 , 408262 , 410935 , 412261 , 413929 , 416166 , 419123 , 426197 , 430081 , 450317 , 463748 , 464932 , 468733 , 469288 , 471881 , 484624 , 486438 , 491380 , 491859 , 505691 , 510275 , 514601 , 516991 , 531304 , 532913 , 532982 , 533007 , 533063 , 541336 , 541838 , 543607 , 543881 , 554413 , 562832 , 568045 , 572026 , 577435 , 583701 , 587185 , 592478 , 594231 , 600883 , 600968 , 601324 , 604473 , 609906 , 619399 , 623264 , 631902 , 633753 , 650774 , 651285 , 667647 , 670957 , 678095 , 681310 , 692887 , 696947 , 719427 , 724178 , 756479 , 789690 , 803659 , 808077 , 814901 );
Copy