3
10.80 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
542090
828253
819489
591276
825366
786433
761449
823252
812489
826720
541199
644187
629788
783290
787355
812401
778387
813604
816700
570874
604910
630316
487930
821902
454040
722323
693806
607298
587574
725584
781945
478983
472672
557873
572190
629108
790635
486933
528390
541478
580355
670853
714188
636468
594243
607118
760178
514731
486846
486928
507895
559216
574708
572268
802905
419455
423802
435734
487548
422171
541118
689036
602578
717236
449710
420008
518552
515736
522689
515663
470207
495562
420654
486888
516741
577823
]
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 (542090 , 828253 , 819489 , 591276 , 825366 , 786433 , 761449 , 823252 , 812489 , 826720 , 541199 , 644187 , 629788 , 783290 , 787355 , 812401 , 778387 , 813604 , 816700 , 570874 , 604910 , 630316 , 487930 , 821902 , 454040 , 722323 , 693806 , 607298 , 587574 , 725584 , 781945 , 478983 , 472672 , 557873 , 572190 , 629108 , 790635 , 486933 , 528390 , 541478 , 580355 , 670853 , 714188 , 636468 , 594243 , 607118 , 760178 , 514731 , 486846 , 486928 , 507895 , 559216 , 574708 , 572268 , 802905 , 419455 , 423802 , 435734 , 487548 , 422171 , 541118 , 689036 , 602578 , 717236 , 449710 , 420008 , 518552 , 515736 , 522689 , 515663 , 470207 , 495562 , 420654 , 486888 , 516741 , 577823 );
Copy
4
1.81 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
419455
420008
420654
422171
423802
435734
449710
454040
470207
472672
478983
486846
486888
486928
486933
487548
487930
495562
507895
514731
515663
515736
516741
518552
522689
528390
541118
541199
541478
542090
557873
559216
570874
572190
572268
574708
577823
580355
587574
591276
594243
602578
607118
607298
629108
629788
630316
636468
644187
670853
689036
693806
714188
717236
722323
725584
760178
761449
778387
781945
783290
786433
787355
790635
802905
812401
812489
813604
816700
819489
821902
823252
825366
826720
828253
]
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 (419455 , 420008 , 420654 , 422171 , 423802 , 435734 , 449710 , 454040 , 470207 , 472672 , 478983 , 486846 , 486888 , 486928 , 486933 , 487548 , 487930 , 495562 , 507895 , 514731 , 515663 , 515736 , 516741 , 518552 , 522689 , 528390 , 541118 , 541199 , 541478 , 542090 , 557873 , 559216 , 570874 , 572190 , 572268 , 574708 , 577823 , 580355 , 587574 , 591276 , 594243 , 602578 , 607118 , 607298 , 629108 , 629788 , 630316 , 636468 , 644187 , 670853 , 689036 , 693806 , 714188 , 717236 , 722323 , 725584 , 760178 , 761449 , 778387 , 781945 , 783290 , 786433 , 787355 , 790635 , 802905 , 812401 , 812489 , 813604 , 816700 , 819489 , 821902 , 823252 , 825366 , 826720 , 828253 );
Copy
5
78.75 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
419455
420008
420654
422171
423802
435734
449710
454040
470207
472672
478983
486846
486888
486928
486933
487548
487930
495562
507895
514731
515663
515736
516741
518552
522689
528390
541118
541199
541478
542090
557873
559216
570874
572190
572268
574708
577823
580355
587574
591276
594243
602578
607118
607298
629108
629788
630316
636468
644187
670853
689036
693806
714188
717236
722323
725584
760178
761449
778387
781945
783290
786433
787355
790635
802905
812401
812489
813604
816700
819489
821902
823252
825366
826720
828253
]
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 (419455 , 420008 , 420654 , 422171 , 423802 , 435734 , 449710 , 454040 , 470207 , 472672 , 478983 , 486846 , 486888 , 486928 , 486933 , 487548 , 487930 , 495562 , 507895 , 514731 , 515663 , 515736 , 516741 , 518552 , 522689 , 528390 , 541118 , 541199 , 541478 , 542090 , 557873 , 559216 , 570874 , 572190 , 572268 , 574708 , 577823 , 580355 , 587574 , 591276 , 594243 , 602578 , 607118 , 607298 , 629108 , 629788 , 630316 , 636468 , 644187 , 670853 , 689036 , 693806 , 714188 , 717236 , 722323 , 725584 , 760178 , 761449 , 778387 , 781945 , 783290 , 786433 , 787355 , 790635 , 802905 , 812401 , 812489 , 813604 , 816700 , 819489 , 821902 , 823252 , 825366 , 826720 , 828253 );
Copy