3
9.96 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
799661
803534
809617
724945
753124
799667
747313
750881
434885
398198
415863
419167
420140
814394
467603
467577
485468
536914
500525
465468
467633
578771
545191
715287
765628
761432
450948
455611
439230
409383
421993
463693
450367
413389
416684
452254
473745
517511
552706
559281
582848
568759
630411
640152
586402
426301
478057
483691
462373
542707
552699
546315
621737
804104
423786
457293
439993
537250
552701
457292
469691
689010
647330
480346
545828
]
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 (799661 , 803534 , 809617 , 724945 , 753124 , 799667 , 747313 , 750881 , 434885 , 398198 , 415863 , 419167 , 420140 , 814394 , 467603 , 467577 , 485468 , 536914 , 500525 , 465468 , 467633 , 578771 , 545191 , 715287 , 765628 , 761432 , 450948 , 455611 , 439230 , 409383 , 421993 , 463693 , 450367 , 413389 , 416684 , 452254 , 473745 , 517511 , 552706 , 559281 , 582848 , 568759 , 630411 , 640152 , 586402 , 426301 , 478057 , 483691 , 462373 , 542707 , 552699 , 546315 , 621737 , 804104 , 423786 , 457293 , 439993 , 537250 , 552701 , 457292 , 469691 , 689010 , 647330 , 480346 , 545828 );
Copy
4
2.66 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
398198
409383
413389
415863
416684
419167
420140
421993
423786
426301
434885
439230
439993
450367
450948
452254
455611
457292
457293
462373
463693
465468
467577
467603
467633
469691
473745
478057
480346
483691
485468
500525
517511
536914
537250
542707
545191
545828
546315
552699
552701
552706
559281
568759
578771
582848
586402
621737
630411
640152
647330
689010
715287
724945
747313
750881
753124
761432
765628
799661
799667
803534
804104
809617
814394
]
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 (398198 , 409383 , 413389 , 415863 , 416684 , 419167 , 420140 , 421993 , 423786 , 426301 , 434885 , 439230 , 439993 , 450367 , 450948 , 452254 , 455611 , 457292 , 457293 , 462373 , 463693 , 465468 , 467577 , 467603 , 467633 , 469691 , 473745 , 478057 , 480346 , 483691 , 485468 , 500525 , 517511 , 536914 , 537250 , 542707 , 545191 , 545828 , 546315 , 552699 , 552701 , 552706 , 559281 , 568759 , 578771 , 582848 , 586402 , 621737 , 630411 , 640152 , 647330 , 689010 , 715287 , 724945 , 747313 , 750881 , 753124 , 761432 , 765628 , 799661 , 799667 , 803534 , 804104 , 809617 , 814394 );
Copy
5
74.33 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
398198
409383
413389
415863
416684
419167
420140
421993
423786
426301
434885
439230
439993
450367
450948
452254
455611
457292
457293
462373
463693
465468
467577
467603
467633
469691
473745
478057
480346
483691
485468
500525
517511
536914
537250
542707
545191
545828
546315
552699
552701
552706
559281
568759
578771
582848
586402
621737
630411
640152
647330
689010
715287
724945
747313
750881
753124
761432
765628
799661
799667
803534
804104
809617
814394
]
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 (398198 , 409383 , 413389 , 415863 , 416684 , 419167 , 420140 , 421993 , 423786 , 426301 , 434885 , 439230 , 439993 , 450367 , 450948 , 452254 , 455611 , 457292 , 457293 , 462373 , 463693 , 465468 , 467577 , 467603 , 467633 , 469691 , 473745 , 478057 , 480346 , 483691 , 485468 , 500525 , 517511 , 536914 , 537250 , 542707 , 545191 , 545828 , 546315 , 552699 , 552701 , 552706 , 559281 , 568759 , 578771 , 582848 , 586402 , 621737 , 630411 , 640152 , 647330 , 689010 , 715287 , 724945 , 747313 , 750881 , 753124 , 761432 , 765628 , 799661 , 799667 , 803534 , 804104 , 809617 , 814394 );
Copy