4
11.75 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
601278
607052
707309
637430
504535
676883
607371
527562
607276
601274
790677
537922
539159
579290
600017
531183
535024
472506
601585
599908
431019
537913
676289
676110
678073
599957
600295
531235
641644
472512
705302
625342
599913
599955
617137
534984
634178
633445
599922
599880
607261
622938
600021
600360
607129
640321
611923
526941
421228
476593
559592
430989
452516
478036
648862
594906
632021
403900
444733
483549
648855
679803
591296
443480
452108
578184
430811
412261
648841
648868
644262
601284
639712
431352
448816
]
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 (601278 , 607052 , 707309 , 637430 , 504535 , 676883 , 607371 , 527562 , 607276 , 601274 , 790677 , 537922 , 539159 , 579290 , 600017 , 531183 , 535024 , 472506 , 601585 , 599908 , 431019 , 537913 , 676289 , 676110 , 678073 , 599957 , 600295 , 531235 , 641644 , 472512 , 705302 , 625342 , 599913 , 599955 , 617137 , 534984 , 634178 , 633445 , 599922 , 599880 , 607261 , 622938 , 600021 , 600360 , 607129 , 640321 , 611923 , 526941 , 421228 , 476593 , 559592 , 430989 , 452516 , 478036 , 648862 , 594906 , 632021 , 403900 , 444733 , 483549 , 648855 , 679803 , 591296 , 443480 , 452108 , 578184 , 430811 , 412261 , 648841 , 648868 , 644262 , 601284 , 639712 , 431352 , 448816 );
Copy
5
2.33 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
403900
412261
421228
430811
430989
431019
431352
443480
444733
448816
452108
452516
472506
472512
476593
478036
483549
504535
526941
527562
531183
531235
534984
535024
537913
537922
539159
559592
578184
579290
591296
594906
599880
599908
599913
599922
599955
599957
600017
600021
600295
600360
601274
601278
601284
601585
607052
607129
607261
607276
607371
611923
617137
622938
625342
632021
633445
634178
637430
639712
640321
641644
644262
648841
648855
648862
648868
676110
676289
676883
678073
679803
705302
707309
790677
]
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 (403900 , 412261 , 421228 , 430811 , 430989 , 431019 , 431352 , 443480 , 444733 , 448816 , 452108 , 452516 , 472506 , 472512 , 476593 , 478036 , 483549 , 504535 , 526941 , 527562 , 531183 , 531235 , 534984 , 535024 , 537913 , 537922 , 539159 , 559592 , 578184 , 579290 , 591296 , 594906 , 599880 , 599908 , 599913 , 599922 , 599955 , 599957 , 600017 , 600021 , 600295 , 600360 , 601274 , 601278 , 601284 , 601585 , 607052 , 607129 , 607261 , 607276 , 607371 , 611923 , 617137 , 622938 , 625342 , 632021 , 633445 , 634178 , 637430 , 639712 , 640321 , 641644 , 644262 , 648841 , 648855 , 648862 , 648868 , 676110 , 676289 , 676883 , 678073 , 679803 , 705302 , 707309 , 790677 );
Copy
6
93.71 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
403900
412261
421228
430811
430989
431019
431352
443480
444733
448816
452108
452516
472506
472512
476593
478036
483549
504535
526941
527562
531183
531235
534984
535024
537913
537922
539159
559592
578184
579290
591296
594906
599880
599908
599913
599922
599955
599957
600017
600021
600295
600360
601274
601278
601284
601585
607052
607129
607261
607276
607371
611923
617137
622938
625342
632021
633445
634178
637430
639712
640321
641644
644262
648841
648855
648862
648868
676110
676289
676883
678073
679803
705302
707309
790677
]
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 (403900 , 412261 , 421228 , 430811 , 430989 , 431019 , 431352 , 443480 , 444733 , 448816 , 452108 , 452516 , 472506 , 472512 , 476593 , 478036 , 483549 , 504535 , 526941 , 527562 , 531183 , 531235 , 534984 , 535024 , 537913 , 537922 , 539159 , 559592 , 578184 , 579290 , 591296 , 594906 , 599880 , 599908 , 599913 , 599922 , 599955 , 599957 , 600017 , 600021 , 600295 , 600360 , 601274 , 601278 , 601284 , 601585 , 607052 , 607129 , 607261 , 607276 , 607371 , 611923 , 617137 , 622938 , 625342 , 632021 , 633445 , 634178 , 637430 , 639712 , 640321 , 641644 , 644262 , 648841 , 648855 , 648862 , 648868 , 676110 , 676289 , 676883 , 678073 , 679803 , 705302 , 707309 , 790677 );
Copy