3
9.26 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
584118
587465
524257
806986
447897
606583
593750
803363
586374
824403
628507
415592
814178
813822
816466
799636
456045
796440
475140
810892
824434
801206
464959
807936
452115
796236
531528
815396
818442
688546
802832
647948
437494
479816
817115
818387
815299
666719
641978
512447
419694
469513
601724
642403
561107
529213
534268
642315
602259
413668
415004
448832
494231
486665
601162
815017
468027
804464
809396
499803
801883
491790
583913
543868
688108
636295
614858
514070
808226
509821
502043
476778
777043
546804
]
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 (584118 , 587465 , 524257 , 806986 , 447897 , 606583 , 593750 , 803363 , 586374 , 824403 , 628507 , 415592 , 814178 , 813822 , 816466 , 799636 , 456045 , 796440 , 475140 , 810892 , 824434 , 801206 , 464959 , 807936 , 452115 , 796236 , 531528 , 815396 , 818442 , 688546 , 802832 , 647948 , 437494 , 479816 , 817115 , 818387 , 815299 , 666719 , 641978 , 512447 , 419694 , 469513 , 601724 , 642403 , 561107 , 529213 , 534268 , 642315 , 602259 , 413668 , 415004 , 448832 , 494231 , 486665 , 601162 , 815017 , 468027 , 804464 , 809396 , 499803 , 801883 , 491790 , 583913 , 543868 , 688108 , 636295 , 614858 , 514070 , 808226 , 509821 , 502043 , 476778 , 777043 , 546804 );
Copy
4
2.96 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
413668
415004
415592
419694
437494
447897
448832
452115
456045
464959
468027
469513
475140
476778
479816
486665
491790
494231
499803
502043
509821
512447
514070
524257
529213
531528
534268
543868
546804
561107
583913
584118
586374
587465
593750
601162
601724
602259
606583
614858
628507
636295
641978
642315
642403
647948
666719
688108
688546
777043
796236
796440
799636
801206
801883
802832
803363
804464
806986
807936
808226
809396
810892
813822
814178
815017
815299
815396
816466
817115
818387
818442
824403
824434
]
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 (413668 , 415004 , 415592 , 419694 , 437494 , 447897 , 448832 , 452115 , 456045 , 464959 , 468027 , 469513 , 475140 , 476778 , 479816 , 486665 , 491790 , 494231 , 499803 , 502043 , 509821 , 512447 , 514070 , 524257 , 529213 , 531528 , 534268 , 543868 , 546804 , 561107 , 583913 , 584118 , 586374 , 587465 , 593750 , 601162 , 601724 , 602259 , 606583 , 614858 , 628507 , 636295 , 641978 , 642315 , 642403 , 647948 , 666719 , 688108 , 688546 , 777043 , 796236 , 796440 , 799636 , 801206 , 801883 , 802832 , 803363 , 804464 , 806986 , 807936 , 808226 , 809396 , 810892 , 813822 , 814178 , 815017 , 815299 , 815396 , 816466 , 817115 , 818387 , 818442 , 824403 , 824434 );
Copy
5
105.51 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
413668
415004
415592
419694
437494
447897
448832
452115
456045
464959
468027
469513
475140
476778
479816
486665
491790
494231
499803
502043
509821
512447
514070
524257
529213
531528
534268
543868
546804
561107
583913
584118
586374
587465
593750
601162
601724
602259
606583
614858
628507
636295
641978
642315
642403
647948
666719
688108
688546
777043
796236
796440
799636
801206
801883
802832
803363
804464
806986
807936
808226
809396
810892
813822
814178
815017
815299
815396
816466
817115
818387
818442
824403
824434
]
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 (413668 , 415004 , 415592 , 419694 , 437494 , 447897 , 448832 , 452115 , 456045 , 464959 , 468027 , 469513 , 475140 , 476778 , 479816 , 486665 , 491790 , 494231 , 499803 , 502043 , 509821 , 512447 , 514070 , 524257 , 529213 , 531528 , 534268 , 543868 , 546804 , 561107 , 583913 , 584118 , 586374 , 587465 , 593750 , 601162 , 601724 , 602259 , 606583 , 614858 , 628507 , 636295 , 641978 , 642315 , 642403 , 647948 , 666719 , 688108 , 688546 , 777043 , 796236 , 796440 , 799636 , 801206 , 801883 , 802832 , 803363 , 804464 , 806986 , 807936 , 808226 , 809396 , 810892 , 813822 , 814178 , 815017 , 815299 , 815396 , 816466 , 817115 , 818387 , 818442 , 824403 , 824434 );
Copy