3
11.72 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
443945
519085
395144
617422
419862
282010
494978
417328
412043
422735
410088
430786
464336
468637
446856
476901
448542
469586
473467
485733
531206
531175
535024
592377
610290
388474
409828
445751
517725
493810
512854
425046
433747
472247
519108
535049
543808
676110
550307
468754
518493
517743
527447
492472
400936
452601
389700
417811
465605
400964
416098
421250
582376
418363
495752
498551
667748
632252
477686
429999
555953
675020
607261
430404
430700
576717
647344
434601
]
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 (443945 , 519085 , 395144 , 617422 , 419862 , 282010 , 494978 , 417328 , 412043 , 422735 , 410088 , 430786 , 464336 , 468637 , 446856 , 476901 , 448542 , 469586 , 473467 , 485733 , 531206 , 531175 , 535024 , 592377 , 610290 , 388474 , 409828 , 445751 , 517725 , 493810 , 512854 , 425046 , 433747 , 472247 , 519108 , 535049 , 543808 , 676110 , 550307 , 468754 , 518493 , 517743 , 527447 , 492472 , 400936 , 452601 , 389700 , 417811 , 465605 , 400964 , 416098 , 421250 , 582376 , 418363 , 495752 , 498551 , 667748 , 632252 , 477686 , 429999 , 555953 , 675020 , 607261 , 430404 , 430700 , 576717 , 647344 , 434601 );
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
282010
388474
389700
395144
400936
400964
409828
410088
412043
416098
417328
417811
418363
419862
421250
422735
425046
429999
430404
430700
430786
433747
434601
443945
445751
446856
448542
452601
464336
465605
468637
468754
469586
472247
473467
476901
477686
485733
492472
493810
494978
495752
498551
512854
517725
517743
518493
519085
519108
527447
531175
531206
535024
535049
543808
550307
555953
576717
582376
592377
607261
610290
617422
632252
647344
667748
675020
676110
]
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 (282010 , 388474 , 389700 , 395144 , 400936 , 400964 , 409828 , 410088 , 412043 , 416098 , 417328 , 417811 , 418363 , 419862 , 421250 , 422735 , 425046 , 429999 , 430404 , 430700 , 430786 , 433747 , 434601 , 443945 , 445751 , 446856 , 448542 , 452601 , 464336 , 465605 , 468637 , 468754 , 469586 , 472247 , 473467 , 476901 , 477686 , 485733 , 492472 , 493810 , 494978 , 495752 , 498551 , 512854 , 517725 , 517743 , 518493 , 519085 , 519108 , 527447 , 531175 , 531206 , 535024 , 535049 , 543808 , 550307 , 555953 , 576717 , 582376 , 592377 , 607261 , 610290 , 617422 , 632252 , 647344 , 667748 , 675020 , 676110 );
Copy
5
100.52 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
282010
388474
389700
395144
400936
400964
409828
410088
412043
416098
417328
417811
418363
419862
421250
422735
425046
429999
430404
430700
430786
433747
434601
443945
445751
446856
448542
452601
464336
465605
468637
468754
469586
472247
473467
476901
477686
485733
492472
493810
494978
495752
498551
512854
517725
517743
518493
519085
519108
527447
531175
531206
535024
535049
543808
550307
555953
576717
582376
592377
607261
610290
617422
632252
647344
667748
675020
676110
]
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 (282010 , 388474 , 389700 , 395144 , 400936 , 400964 , 409828 , 410088 , 412043 , 416098 , 417328 , 417811 , 418363 , 419862 , 421250 , 422735 , 425046 , 429999 , 430404 , 430700 , 430786 , 433747 , 434601 , 443945 , 445751 , 446856 , 448542 , 452601 , 464336 , 465605 , 468637 , 468754 , 469586 , 472247 , 473467 , 476901 , 477686 , 485733 , 492472 , 493810 , 494978 , 495752 , 498551 , 512854 , 517725 , 517743 , 518493 , 519085 , 519108 , 527447 , 531175 , 531206 , 535024 , 535049 , 543808 , 550307 , 555953 , 576717 , 582376 , 592377 , 607261 , 610290 , 617422 , 632252 , 647344 , 667748 , 675020 , 676110 );
Copy