3
13.83 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
521970
528925
529462
490720
498827
512823
521298
527168
513994
517264
443114
816007
455731
459292
489697
498345
502614
510611
507095
498151
569153
562266
561089
631937
614344
619802
619830
617025
474013
474058
431979
434741
436040
476350
472471
528618
506573
533450
395894
525542
532029
529144
525203
580958
603317
614258
456981
520262
510404
504895
525082
564566
579417
551081
561096
572273
610629
517869
521866
520839
603286
513573
599534
464326
568741
617132
517492
523995
623337
]
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 (521970 , 528925 , 529462 , 490720 , 498827 , 512823 , 521298 , 527168 , 513994 , 517264 , 443114 , 816007 , 455731 , 459292 , 489697 , 498345 , 502614 , 510611 , 507095 , 498151 , 569153 , 562266 , 561089 , 631937 , 614344 , 619802 , 619830 , 617025 , 474013 , 474058 , 431979 , 434741 , 436040 , 476350 , 472471 , 528618 , 506573 , 533450 , 395894 , 525542 , 532029 , 529144 , 525203 , 580958 , 603317 , 614258 , 456981 , 520262 , 510404 , 504895 , 525082 , 564566 , 579417 , 551081 , 561096 , 572273 , 610629 , 517869 , 521866 , 520839 , 603286 , 513573 , 599534 , 464326 , 568741 , 617132 , 517492 , 523995 , 623337 );
Copy
4
2.98 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
395894
431979
434741
436040
443114
455731
456981
459292
464326
472471
474013
474058
476350
489697
490720
498151
498345
498827
502614
504895
506573
507095
510404
510611
512823
513573
513994
517264
517492
517869
520262
520839
521298
521866
521970
523995
525082
525203
525542
527168
528618
528925
529144
529462
532029
533450
551081
561089
561096
562266
564566
568741
569153
572273
579417
580958
599534
603286
603317
610629
614258
614344
617025
617132
619802
619830
623337
631937
816007
]
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 (395894 , 431979 , 434741 , 436040 , 443114 , 455731 , 456981 , 459292 , 464326 , 472471 , 474013 , 474058 , 476350 , 489697 , 490720 , 498151 , 498345 , 498827 , 502614 , 504895 , 506573 , 507095 , 510404 , 510611 , 512823 , 513573 , 513994 , 517264 , 517492 , 517869 , 520262 , 520839 , 521298 , 521866 , 521970 , 523995 , 525082 , 525203 , 525542 , 527168 , 528618 , 528925 , 529144 , 529462 , 532029 , 533450 , 551081 , 561089 , 561096 , 562266 , 564566 , 568741 , 569153 , 572273 , 579417 , 580958 , 599534 , 603286 , 603317 , 610629 , 614258 , 614344 , 617025 , 617132 , 619802 , 619830 , 623337 , 631937 , 816007 );
Copy
5
95.91 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
395894
431979
434741
436040
443114
455731
456981
459292
464326
472471
474013
474058
476350
489697
490720
498151
498345
498827
502614
504895
506573
507095
510404
510611
512823
513573
513994
517264
517492
517869
520262
520839
521298
521866
521970
523995
525082
525203
525542
527168
528618
528925
529144
529462
532029
533450
551081
561089
561096
562266
564566
568741
569153
572273
579417
580958
599534
603286
603317
610629
614258
614344
617025
617132
619802
619830
623337
631937
816007
]
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 (395894 , 431979 , 434741 , 436040 , 443114 , 455731 , 456981 , 459292 , 464326 , 472471 , 474013 , 474058 , 476350 , 489697 , 490720 , 498151 , 498345 , 498827 , 502614 , 504895 , 506573 , 507095 , 510404 , 510611 , 512823 , 513573 , 513994 , 517264 , 517492 , 517869 , 520262 , 520839 , 521298 , 521866 , 521970 , 523995 , 525082 , 525203 , 525542 , 527168 , 528618 , 528925 , 529144 , 529462 , 532029 , 533450 , 551081 , 561089 , 561096 , 562266 , 564566 , 568741 , 569153 , 572273 , 579417 , 580958 , 599534 , 603286 , 603317 , 610629 , 614258 , 614344 , 617025 , 617132 , 619802 , 619830 , 623337 , 631937 , 816007 );
Copy