4
12.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
467384
400556
419844
467378
494397
420106
411222
450973
454857
533548
510560
515881
584705
560444
719806
560136
616822
616816
791358
728458
708045
786526
400550
436833
415983
420111
444568
454581
420503
447522
467386
472302
513192
515286
523491
526489
402678
413296
413298
452383
521443
559521
616758
617863
792423
615009
498536
593225
402670
515858
424577
600281
433250
459488
445649
660439
637592
533541
422411
491029
472505
590514
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 (467384 , 400556 , 419844 , 467378 , 494397 , 420106 , 411222 , 450973 , 454857 , 533548 , 510560 , 515881 , 584705 , 560444 , 719806 , 560136 , 616822 , 616816 , 791358 , 728458 , 708045 , 786526 , 400550 , 436833 , 415983 , 420111 , 444568 , 454581 , 420503 , 447522 , 467386 , 472302 , 513192 , 515286 , 523491 , 526489 , 402678 , 413296 , 413298 , 452383 , 521443 , 559521 , 616758 , 617863 , 792423 , 615009 , 498536 , 593225 , 402670 , 515858 , 424577 , 600281 , 433250 , 459488 , 445649 , 660439 , 637592 , 533541 , 422411 , 491029 , 472505 , 590514 , 446659 , 590993 , 593992 );
Copy
5
2.94 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
400550
400556
402670
402678
411222
413296
413298
415983
419844
420106
420111
420503
422411
424577
433250
436833
444568
445649
446659
447522
450973
452383
454581
454857
459488
467378
467384
467386
472302
472505
491029
494397
498536
510560
513192
515286
515858
515881
521443
523491
526489
533541
533548
559521
560136
560444
584705
590514
590993
593225
593992
600281
615009
616758
616816
616822
617863
637592
660439
708045
719806
728458
786526
791358
792423
]
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 (400550 , 400556 , 402670 , 402678 , 411222 , 413296 , 413298 , 415983 , 419844 , 420106 , 420111 , 420503 , 422411 , 424577 , 433250 , 436833 , 444568 , 445649 , 446659 , 447522 , 450973 , 452383 , 454581 , 454857 , 459488 , 467378 , 467384 , 467386 , 472302 , 472505 , 491029 , 494397 , 498536 , 510560 , 513192 , 515286 , 515858 , 515881 , 521443 , 523491 , 526489 , 533541 , 533548 , 559521 , 560136 , 560444 , 584705 , 590514 , 590993 , 593225 , 593992 , 600281 , 615009 , 616758 , 616816 , 616822 , 617863 , 637592 , 660439 , 708045 , 719806 , 728458 , 786526 , 791358 , 792423 );
Copy
6
91.83 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
400550
400556
402670
402678
411222
413296
413298
415983
419844
420106
420111
420503
422411
424577
433250
436833
444568
445649
446659
447522
450973
452383
454581
454857
459488
467378
467384
467386
472302
472505
491029
494397
498536
510560
513192
515286
515858
515881
521443
523491
526489
533541
533548
559521
560136
560444
584705
590514
590993
593225
593992
600281
615009
616758
616816
616822
617863
637592
660439
708045
719806
728458
786526
791358
792423
]
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 (400550 , 400556 , 402670 , 402678 , 411222 , 413296 , 413298 , 415983 , 419844 , 420106 , 420111 , 420503 , 422411 , 424577 , 433250 , 436833 , 444568 , 445649 , 446659 , 447522 , 450973 , 452383 , 454581 , 454857 , 459488 , 467378 , 467384 , 467386 , 472302 , 472505 , 491029 , 494397 , 498536 , 510560 , 513192 , 515286 , 515858 , 515881 , 521443 , 523491 , 526489 , 533541 , 533548 , 559521 , 560136 , 560444 , 584705 , 590514 , 590993 , 593225 , 593992 , 600281 , 615009 , 616758 , 616816 , 616822 , 617863 , 637592 , 660439 , 708045 , 719806 , 728458 , 786526 , 791358 , 792423 );
Copy