3
11.42 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
600781
613800
743928
806860
438638
447604
390923
423844
388110
423830
435069
455877
476799
505885
515592
508820
513418
516543
490098
447911
540748
556000
582680
552567
709524
555970
586189
639253
459298
447935
525303
540747
488077
425206
507310
513204
526367
541418
555968
650016
585550
644276
585515
643112
704222
432531
442137
444845
544788
590288
589708
592770
703833
462462
575841
624201
641418
447952
486864
486868
624150
642407
524620
642662
440801
725041
450563
439500
]
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 (600781 , 613800 , 743928 , 806860 , 438638 , 447604 , 390923 , 423844 , 388110 , 423830 , 435069 , 455877 , 476799 , 505885 , 515592 , 508820 , 513418 , 516543 , 490098 , 447911 , 540748 , 556000 , 582680 , 552567 , 709524 , 555970 , 586189 , 639253 , 459298 , 447935 , 525303 , 540747 , 488077 , 425206 , 507310 , 513204 , 526367 , 541418 , 555968 , 650016 , 585550 , 644276 , 585515 , 643112 , 704222 , 432531 , 442137 , 444845 , 544788 , 590288 , 589708 , 592770 , 703833 , 462462 , 575841 , 624201 , 641418 , 447952 , 486864 , 486868 , 624150 , 642407 , 524620 , 642662 , 440801 , 725041 , 450563 , 439500 );
Copy
4
2.47 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
388110
390923
423830
423844
425206
432531
435069
438638
439500
440801
442137
444845
447604
447911
447935
447952
450563
455877
459298
462462
476799
486864
486868
488077
490098
505885
507310
508820
513204
513418
515592
516543
524620
525303
526367
540747
540748
541418
544788
552567
555968
555970
556000
575841
582680
585515
585550
586189
589708
590288
592770
600781
613800
624150
624201
639253
641418
642407
642662
643112
644276
650016
703833
704222
709524
725041
743928
806860
]
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 (388110 , 390923 , 423830 , 423844 , 425206 , 432531 , 435069 , 438638 , 439500 , 440801 , 442137 , 444845 , 447604 , 447911 , 447935 , 447952 , 450563 , 455877 , 459298 , 462462 , 476799 , 486864 , 486868 , 488077 , 490098 , 505885 , 507310 , 508820 , 513204 , 513418 , 515592 , 516543 , 524620 , 525303 , 526367 , 540747 , 540748 , 541418 , 544788 , 552567 , 555968 , 555970 , 556000 , 575841 , 582680 , 585515 , 585550 , 586189 , 589708 , 590288 , 592770 , 600781 , 613800 , 624150 , 624201 , 639253 , 641418 , 642407 , 642662 , 643112 , 644276 , 650016 , 703833 , 704222 , 709524 , 725041 , 743928 , 806860 );
Copy
5
139.52 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
388110
390923
423830
423844
425206
432531
435069
438638
439500
440801
442137
444845
447604
447911
447935
447952
450563
455877
459298
462462
476799
486864
486868
488077
490098
505885
507310
508820
513204
513418
515592
516543
524620
525303
526367
540747
540748
541418
544788
552567
555968
555970
556000
575841
582680
585515
585550
586189
589708
590288
592770
600781
613800
624150
624201
639253
641418
642407
642662
643112
644276
650016
703833
704222
709524
725041
743928
806860
]
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 (388110 , 390923 , 423830 , 423844 , 425206 , 432531 , 435069 , 438638 , 439500 , 440801 , 442137 , 444845 , 447604 , 447911 , 447935 , 447952 , 450563 , 455877 , 459298 , 462462 , 476799 , 486864 , 486868 , 488077 , 490098 , 505885 , 507310 , 508820 , 513204 , 513418 , 515592 , 516543 , 524620 , 525303 , 526367 , 540747 , 540748 , 541418 , 544788 , 552567 , 555968 , 555970 , 556000 , 575841 , 582680 , 585515 , 585550 , 586189 , 589708 , 590288 , 592770 , 600781 , 613800 , 624150 , 624201 , 639253 , 641418 , 642407 , 642662 , 643112 , 644276 , 650016 , 703833 , 704222 , 709524 , 725041 , 743928 , 806860 );
Copy