3
9.96 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
782588
442695
432426
432376
432527
497228
452273
398955
442211
456787
459117
537508
555479
605646
800030
730994
459471
433061
434195
442189
489768
580663
591277
514687
456778
531905
517143
571128
667344
586026
605702
442254
433078
489847
510555
614942
442234
442285
511911
442255
442248
555039
638380
440966
432393
494043
442735
442768
445414
567865
455974
503619
514141
514149
439626
683054
442239
440581
442320
500424
402985
472917
407011
577556
520995
563634
500477
442257
]
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 (782588 , 442695 , 432426 , 432376 , 432527 , 497228 , 452273 , 398955 , 442211 , 456787 , 459117 , 537508 , 555479 , 605646 , 800030 , 730994 , 459471 , 433061 , 434195 , 442189 , 489768 , 580663 , 591277 , 514687 , 456778 , 531905 , 517143 , 571128 , 667344 , 586026 , 605702 , 442254 , 433078 , 489847 , 510555 , 614942 , 442234 , 442285 , 511911 , 442255 , 442248 , 555039 , 638380 , 440966 , 432393 , 494043 , 442735 , 442768 , 445414 , 567865 , 455974 , 503619 , 514141 , 514149 , 439626 , 683054 , 442239 , 440581 , 442320 , 500424 , 402985 , 472917 , 407011 , 577556 , 520995 , 563634 , 500477 , 442257 );
Copy
4
3.24 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
398955
402985
407011
432376
432393
432426
432527
433061
433078
434195
439626
440581
440966
442189
442211
442234
442239
442248
442254
442255
442257
442285
442320
442695
442735
442768
445414
452273
455974
456778
456787
459117
459471
472917
489768
489847
494043
497228
500424
500477
503619
510555
511911
514141
514149
514687
517143
520995
531905
537508
555039
555479
563634
567865
571128
577556
580663
586026
591277
605646
605702
614942
638380
667344
683054
730994
782588
800030
]
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 (398955 , 402985 , 407011 , 432376 , 432393 , 432426 , 432527 , 433061 , 433078 , 434195 , 439626 , 440581 , 440966 , 442189 , 442211 , 442234 , 442239 , 442248 , 442254 , 442255 , 442257 , 442285 , 442320 , 442695 , 442735 , 442768 , 445414 , 452273 , 455974 , 456778 , 456787 , 459117 , 459471 , 472917 , 489768 , 489847 , 494043 , 497228 , 500424 , 500477 , 503619 , 510555 , 511911 , 514141 , 514149 , 514687 , 517143 , 520995 , 531905 , 537508 , 555039 , 555479 , 563634 , 567865 , 571128 , 577556 , 580663 , 586026 , 591277 , 605646 , 605702 , 614942 , 638380 , 667344 , 683054 , 730994 , 782588 , 800030 );
Copy
5
95.36 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
398955
402985
407011
432376
432393
432426
432527
433061
433078
434195
439626
440581
440966
442189
442211
442234
442239
442248
442254
442255
442257
442285
442320
442695
442735
442768
445414
452273
455974
456778
456787
459117
459471
472917
489768
489847
494043
497228
500424
500477
503619
510555
511911
514141
514149
514687
517143
520995
531905
537508
555039
555479
563634
567865
571128
577556
580663
586026
591277
605646
605702
614942
638380
667344
683054
730994
782588
800030
]
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 (398955 , 402985 , 407011 , 432376 , 432393 , 432426 , 432527 , 433061 , 433078 , 434195 , 439626 , 440581 , 440966 , 442189 , 442211 , 442234 , 442239 , 442248 , 442254 , 442255 , 442257 , 442285 , 442320 , 442695 , 442735 , 442768 , 445414 , 452273 , 455974 , 456778 , 456787 , 459117 , 459471 , 472917 , 489768 , 489847 , 494043 , 497228 , 500424 , 500477 , 503619 , 510555 , 511911 , 514141 , 514149 , 514687 , 517143 , 520995 , 531905 , 537508 , 555039 , 555479 , 563634 , 567865 , 571128 , 577556 , 580663 , 586026 , 591277 , 605646 , 605702 , 614942 , 638380 , 667344 , 683054 , 730994 , 782588 , 800030 );
Copy