3
14.43 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
484684
489738
484419
495703
517033
541651
492598
508492
519727
414131
415539
443323
448834
448863
454221
541831
541886
478065
471380
499863
516103
485703
506803
507880
513710
517386
519988
491913
497356
500716
434310
466561
482527
543918
554301
661256
659325
607329
637002
615574
401318
464327
478771
430444
484673
521784
484519
518468
489328
529794
463842
476106
573393
598142
605545
602991
469534
477230
467981
522556
542199
603933
499852
497953
541804
573314
612256
541646
]
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 (484684 , 489738 , 484419 , 495703 , 517033 , 541651 , 492598 , 508492 , 519727 , 414131 , 415539 , 443323 , 448834 , 448863 , 454221 , 541831 , 541886 , 478065 , 471380 , 499863 , 516103 , 485703 , 506803 , 507880 , 513710 , 517386 , 519988 , 491913 , 497356 , 500716 , 434310 , 466561 , 482527 , 543918 , 554301 , 661256 , 659325 , 607329 , 637002 , 615574 , 401318 , 464327 , 478771 , 430444 , 484673 , 521784 , 484519 , 518468 , 489328 , 529794 , 463842 , 476106 , 573393 , 598142 , 605545 , 602991 , 469534 , 477230 , 467981 , 522556 , 542199 , 603933 , 499852 , 497953 , 541804 , 573314 , 612256 , 541646 );
Copy
4
3.13 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
401318
414131
415539
430444
434310
443323
448834
448863
454221
463842
464327
466561
467981
469534
471380
476106
477230
478065
478771
482527
484419
484519
484673
484684
485703
489328
489738
491913
492598
495703
497356
497953
499852
499863
500716
506803
507880
508492
513710
516103
517033
517386
518468
519727
519988
521784
522556
529794
541646
541651
541804
541831
541886
542199
543918
554301
573314
573393
598142
602991
603933
605545
607329
612256
615574
637002
659325
661256
]
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 (401318 , 414131 , 415539 , 430444 , 434310 , 443323 , 448834 , 448863 , 454221 , 463842 , 464327 , 466561 , 467981 , 469534 , 471380 , 476106 , 477230 , 478065 , 478771 , 482527 , 484419 , 484519 , 484673 , 484684 , 485703 , 489328 , 489738 , 491913 , 492598 , 495703 , 497356 , 497953 , 499852 , 499863 , 500716 , 506803 , 507880 , 508492 , 513710 , 516103 , 517033 , 517386 , 518468 , 519727 , 519988 , 521784 , 522556 , 529794 , 541646 , 541651 , 541804 , 541831 , 541886 , 542199 , 543918 , 554301 , 573314 , 573393 , 598142 , 602991 , 603933 , 605545 , 607329 , 612256 , 615574 , 637002 , 659325 , 661256 );
Copy
5
115.32 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
401318
414131
415539
430444
434310
443323
448834
448863
454221
463842
464327
466561
467981
469534
471380
476106
477230
478065
478771
482527
484419
484519
484673
484684
485703
489328
489738
491913
492598
495703
497356
497953
499852
499863
500716
506803
507880
508492
513710
516103
517033
517386
518468
519727
519988
521784
522556
529794
541646
541651
541804
541831
541886
542199
543918
554301
573314
573393
598142
602991
603933
605545
607329
612256
615574
637002
659325
661256
]
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 (401318 , 414131 , 415539 , 430444 , 434310 , 443323 , 448834 , 448863 , 454221 , 463842 , 464327 , 466561 , 467981 , 469534 , 471380 , 476106 , 477230 , 478065 , 478771 , 482527 , 484419 , 484519 , 484673 , 484684 , 485703 , 489328 , 489738 , 491913 , 492598 , 495703 , 497356 , 497953 , 499852 , 499863 , 500716 , 506803 , 507880 , 508492 , 513710 , 516103 , 517033 , 517386 , 518468 , 519727 , 519988 , 521784 , 522556 , 529794 , 541646 , 541651 , 541804 , 541831 , 541886 , 542199 , 543918 , 554301 , 573314 , 573393 , 598142 , 602991 , 603933 , 605545 , 607329 , 612256 , 615574 , 637002 , 659325 , 661256 );
Copy