3
13.63 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
444568
523491
526489
390366
418750
420105
486186
626985
793279
732915
709244
721334
418524
467359
467384
400556
467378
494397
420106
510560
616822
791358
708045
515286
413298
452383
521443
615009
411222
450973
454857
533548
719806
400550
415983
420111
454581
467386
472302
513192
402678
617863
593225
413296
616758
792423
498536
424577
445649
637592
402670
515858
422411
660439
533541
491029
590514
472505
433250
459488
446659
590993
593992
]
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 (444568 , 523491 , 526489 , 390366 , 418750 , 420105 , 486186 , 626985 , 793279 , 732915 , 709244 , 721334 , 418524 , 467359 , 467384 , 400556 , 467378 , 494397 , 420106 , 510560 , 616822 , 791358 , 708045 , 515286 , 413298 , 452383 , 521443 , 615009 , 411222 , 450973 , 454857 , 533548 , 719806 , 400550 , 415983 , 420111 , 454581 , 467386 , 472302 , 513192 , 402678 , 617863 , 593225 , 413296 , 616758 , 792423 , 498536 , 424577 , 445649 , 637592 , 402670 , 515858 , 422411 , 660439 , 533541 , 491029 , 590514 , 472505 , 433250 , 459488 , 446659 , 590993 , 593992 );
Copy
4
2.60 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
390366
400550
400556
402670
402678
411222
413296
413298
415983
418524
418750
420105
420106
420111
422411
424577
433250
444568
445649
446659
450973
452383
454581
454857
459488
467359
467378
467384
467386
472302
472505
486186
491029
494397
498536
510560
513192
515286
515858
521443
523491
526489
533541
533548
590514
590993
593225
593992
615009
616758
616822
617863
626985
637592
660439
708045
709244
719806
721334
732915
791358
792423
793279
]
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 (390366 , 400550 , 400556 , 402670 , 402678 , 411222 , 413296 , 413298 , 415983 , 418524 , 418750 , 420105 , 420106 , 420111 , 422411 , 424577 , 433250 , 444568 , 445649 , 446659 , 450973 , 452383 , 454581 , 454857 , 459488 , 467359 , 467378 , 467384 , 467386 , 472302 , 472505 , 486186 , 491029 , 494397 , 498536 , 510560 , 513192 , 515286 , 515858 , 521443 , 523491 , 526489 , 533541 , 533548 , 590514 , 590993 , 593225 , 593992 , 615009 , 616758 , 616822 , 617863 , 626985 , 637592 , 660439 , 708045 , 709244 , 719806 , 721334 , 732915 , 791358 , 792423 , 793279 );
Copy
5
68.93 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
390366
400550
400556
402670
402678
411222
413296
413298
415983
418524
418750
420105
420106
420111
422411
424577
433250
444568
445649
446659
450973
452383
454581
454857
459488
467359
467378
467384
467386
472302
472505
486186
491029
494397
498536
510560
513192
515286
515858
521443
523491
526489
533541
533548
590514
590993
593225
593992
615009
616758
616822
617863
626985
637592
660439
708045
709244
719806
721334
732915
791358
792423
793279
]
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 (390366 , 400550 , 400556 , 402670 , 402678 , 411222 , 413296 , 413298 , 415983 , 418524 , 418750 , 420105 , 420106 , 420111 , 422411 , 424577 , 433250 , 444568 , 445649 , 446659 , 450973 , 452383 , 454581 , 454857 , 459488 , 467359 , 467378 , 467384 , 467386 , 472302 , 472505 , 486186 , 491029 , 494397 , 498536 , 510560 , 513192 , 515286 , 515858 , 521443 , 523491 , 526489 , 533541 , 533548 , 590514 , 590993 , 593225 , 593992 , 615009 , 616758 , 616822 , 617863 , 626985 , 637592 , 660439 , 708045 , 709244 , 719806 , 721334 , 732915 , 791358 , 792423 , 793279 );
Copy