3
12.45 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
757808
705795
502639
502975
419269
592146
768968
794924
483811
760934
779733
764001
566729
646981
778989
570764
619012
455522
828252
733215
424010
720421
445747
455245
569153
575170
491010
496123
642628
610023
603317
761136
499025
779979
478223
480178
411130
549814
510497
481419
786493
543275
491888
402458
549026
719303
403165
705755
659956
583984
553227
514953
549513
603551
522644
778949
483791
507103
492559
528437
525626
525082
538768
483247
551223
461324
486134
489941
443590
502484
453095
]
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 (757808 , 705795 , 502639 , 502975 , 419269 , 592146 , 768968 , 794924 , 483811 , 760934 , 779733 , 764001 , 566729 , 646981 , 778989 , 570764 , 619012 , 455522 , 828252 , 733215 , 424010 , 720421 , 445747 , 455245 , 569153 , 575170 , 491010 , 496123 , 642628 , 610023 , 603317 , 761136 , 499025 , 779979 , 478223 , 480178 , 411130 , 549814 , 510497 , 481419 , 786493 , 543275 , 491888 , 402458 , 549026 , 719303 , 403165 , 705755 , 659956 , 583984 , 553227 , 514953 , 549513 , 603551 , 522644 , 778949 , 483791 , 507103 , 492559 , 528437 , 525626 , 525082 , 538768 , 483247 , 551223 , 461324 , 486134 , 489941 , 443590 , 502484 , 453095 );
Copy
4
3.16 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
402458
403165
411130
419269
424010
443590
445747
453095
455245
455522
461324
478223
480178
481419
483247
483791
483811
486134
489941
491010
491888
492559
496123
499025
502484
502639
502975
507103
510497
514953
522644
525082
525626
528437
538768
543275
549026
549513
549814
551223
553227
566729
569153
570764
575170
583984
592146
603317
603551
610023
619012
642628
646981
659956
705755
719303
720421
733215
757808
760934
761136
764001
768968
778949
778989
779733
779979
786493
794924
828252
]
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 (402458 , 403165 , 411130 , 419269 , 424010 , 443590 , 445747 , 453095 , 455245 , 455522 , 461324 , 478223 , 480178 , 481419 , 483247 , 483791 , 483811 , 486134 , 489941 , 491010 , 491888 , 492559 , 496123 , 499025 , 502484 , 502639 , 502975 , 507103 , 510497 , 514953 , 522644 , 525082 , 525626 , 528437 , 538768 , 543275 , 549026 , 549513 , 549814 , 551223 , 553227 , 566729 , 569153 , 570764 , 575170 , 583984 , 592146 , 603317 , 603551 , 610023 , 619012 , 642628 , 646981 , 659956 , 705755 , 719303 , 720421 , 733215 , 757808 , 760934 , 761136 , 764001 , 768968 , 778949 , 778989 , 779733 , 779979 , 786493 , 794924 , 828252 );
Copy
5
87.68 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
402458
403165
411130
419269
424010
443590
445747
453095
455245
455522
461324
478223
480178
481419
483247
483791
483811
486134
489941
491010
491888
492559
496123
499025
502484
502639
502975
507103
510497
514953
522644
525082
525626
528437
538768
543275
549026
549513
549814
551223
553227
566729
569153
570764
575170
583984
592146
603317
603551
610023
619012
642628
646981
659956
705755
719303
720421
733215
757808
760934
761136
764001
768968
778949
778989
779733
779979
786493
794924
828252
]
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 (402458 , 403165 , 411130 , 419269 , 424010 , 443590 , 445747 , 453095 , 455245 , 455522 , 461324 , 478223 , 480178 , 481419 , 483247 , 483791 , 483811 , 486134 , 489941 , 491010 , 491888 , 492559 , 496123 , 499025 , 502484 , 502639 , 502975 , 507103 , 510497 , 514953 , 522644 , 525082 , 525626 , 528437 , 538768 , 543275 , 549026 , 549513 , 549814 , 551223 , 553227 , 566729 , 569153 , 570764 , 575170 , 583984 , 592146 , 603317 , 603551 , 610023 , 619012 , 642628 , 646981 , 659956 , 705755 , 719303 , 720421 , 733215 , 757808 , 760934 , 761136 , 764001 , 768968 , 778949 , 778989 , 779733 , 779979 , 786493 , 794924 , 828252 );
Copy