3
11.35 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
733339
602553
686459
574434
497322
657214
604981
660572
529331
506303
502626
562105
503786
500929
660613
618921
626282
544425
450385
517006
574089
680440
515959
549277
519392
461935
443541
557018
455888
153618
748687
448636
607928
420442
416138
486559
520790
584955
627013
432778
513508
417841
463810
503644
558490
603725
428716
512913
546465
624375
524793
539731
686748
513061
453324
688390
444068
481910
499867
655615
582631
511601
511837
549860
]
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 (733339 , 602553 , 686459 , 574434 , 497322 , 657214 , 604981 , 660572 , 529331 , 506303 , 502626 , 562105 , 503786 , 500929 , 660613 , 618921 , 626282 , 544425 , 450385 , 517006 , 574089 , 680440 , 515959 , 549277 , 519392 , 461935 , 443541 , 557018 , 455888 , 153618 , 748687 , 448636 , 607928 , 420442 , 416138 , 486559 , 520790 , 584955 , 627013 , 432778 , 513508 , 417841 , 463810 , 503644 , 558490 , 603725 , 428716 , 512913 , 546465 , 624375 , 524793 , 539731 , 686748 , 513061 , 453324 , 688390 , 444068 , 481910 , 499867 , 655615 , 582631 , 511601 , 511837 , 549860 );
Copy
4
2.99 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
153618
416138
417841
420442
428716
432778
443541
444068
448636
450385
453324
455888
461935
463810
481910
486559
497322
499867
500929
502626
503644
503786
506303
511601
511837
512913
513061
513508
515959
517006
519392
520790
524793
529331
539731
544425
546465
549277
549860
557018
558490
562105
574089
574434
582631
584955
602553
603725
604981
607928
618921
624375
626282
627013
655615
657214
660572
660613
680440
686459
686748
688390
733339
748687
]
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 (153618 , 416138 , 417841 , 420442 , 428716 , 432778 , 443541 , 444068 , 448636 , 450385 , 453324 , 455888 , 461935 , 463810 , 481910 , 486559 , 497322 , 499867 , 500929 , 502626 , 503644 , 503786 , 506303 , 511601 , 511837 , 512913 , 513061 , 513508 , 515959 , 517006 , 519392 , 520790 , 524793 , 529331 , 539731 , 544425 , 546465 , 549277 , 549860 , 557018 , 558490 , 562105 , 574089 , 574434 , 582631 , 584955 , 602553 , 603725 , 604981 , 607928 , 618921 , 624375 , 626282 , 627013 , 655615 , 657214 , 660572 , 660613 , 680440 , 686459 , 686748 , 688390 , 733339 , 748687 );
Copy
5
125.04 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
153618
416138
417841
420442
428716
432778
443541
444068
448636
450385
453324
455888
461935
463810
481910
486559
497322
499867
500929
502626
503644
503786
506303
511601
511837
512913
513061
513508
515959
517006
519392
520790
524793
529331
539731
544425
546465
549277
549860
557018
558490
562105
574089
574434
582631
584955
602553
603725
604981
607928
618921
624375
626282
627013
655615
657214
660572
660613
680440
686459
686748
688390
733339
748687
]
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 (153618 , 416138 , 417841 , 420442 , 428716 , 432778 , 443541 , 444068 , 448636 , 450385 , 453324 , 455888 , 461935 , 463810 , 481910 , 486559 , 497322 , 499867 , 500929 , 502626 , 503644 , 503786 , 506303 , 511601 , 511837 , 512913 , 513061 , 513508 , 515959 , 517006 , 519392 , 520790 , 524793 , 529331 , 539731 , 544425 , 546465 , 549277 , 549860 , 557018 , 558490 , 562105 , 574089 , 574434 , 582631 , 584955 , 602553 , 603725 , 604981 , 607928 , 618921 , 624375 , 626282 , 627013 , 655615 , 657214 , 660572 , 660613 , 680440 , 686459 , 686748 , 688390 , 733339 , 748687 );
Copy