3
13.06 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
390898
388176
817565
608600
530027
641117
454158
725232
593790
635193
726686
519579
430219
8716
384988
526175
666737
756342
726494
454465
464184
561595
697588
737877
489976
469539
525151
454031
474774
599687
469530
789101
476316
559684
528087
444675
513245
424653
474423
565646
8956
485616
532209
563234
457372
484429
505961
459883
603039
796184
467975
514103
469552
561339
761875
430215
514008
523773
502505
462100
467981
466094
519147
425967
693944
453959
442975
454027
513113
465391
482240
484688
402985
561381
462098
]
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 (390898 , 388176 , 817565 , 608600 , 530027 , 641117 , 454158 , 725232 , 593790 , 635193 , 726686 , 519579 , 430219 , 8716 , 384988 , 526175 , 666737 , 756342 , 726494 , 454465 , 464184 , 561595 , 697588 , 737877 , 489976 , 469539 , 525151 , 454031 , 474774 , 599687 , 469530 , 789101 , 476316 , 559684 , 528087 , 444675 , 513245 , 424653 , 474423 , 565646 , 8956 , 485616 , 532209 , 563234 , 457372 , 484429 , 505961 , 459883 , 603039 , 796184 , 467975 , 514103 , 469552 , 561339 , 761875 , 430215 , 514008 , 523773 , 502505 , 462100 , 467981 , 466094 , 519147 , 425967 , 693944 , 453959 , 442975 , 454027 , 513113 , 465391 , 482240 , 484688 , 402985 , 561381 , 462098 );
Copy
4
3.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
8716
8956
384988
388176
390898
402985
424653
425967
430215
430219
442975
444675
453959
454027
454031
454158
454465
457372
459883
462098
462100
464184
465391
466094
467975
467981
469530
469539
469552
474423
474774
476316
482240
484429
484688
485616
489976
502505
505961
513113
513245
514008
514103
519147
519579
523773
525151
526175
528087
530027
532209
559684
561339
561381
561595
563234
565646
593790
599687
603039
608600
635193
641117
666737
693944
697588
725232
726494
726686
737877
756342
761875
789101
796184
817565
]
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 (8716 , 8956 , 384988 , 388176 , 390898 , 402985 , 424653 , 425967 , 430215 , 430219 , 442975 , 444675 , 453959 , 454027 , 454031 , 454158 , 454465 , 457372 , 459883 , 462098 , 462100 , 464184 , 465391 , 466094 , 467975 , 467981 , 469530 , 469539 , 469552 , 474423 , 474774 , 476316 , 482240 , 484429 , 484688 , 485616 , 489976 , 502505 , 505961 , 513113 , 513245 , 514008 , 514103 , 519147 , 519579 , 523773 , 525151 , 526175 , 528087 , 530027 , 532209 , 559684 , 561339 , 561381 , 561595 , 563234 , 565646 , 593790 , 599687 , 603039 , 608600 , 635193 , 641117 , 666737 , 693944 , 697588 , 725232 , 726494 , 726686 , 737877 , 756342 , 761875 , 789101 , 796184 , 817565 );
Copy
5
144.77 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
8716
8956
384988
388176
390898
402985
424653
425967
430215
430219
442975
444675
453959
454027
454031
454158
454465
457372
459883
462098
462100
464184
465391
466094
467975
467981
469530
469539
469552
474423
474774
476316
482240
484429
484688
485616
489976
502505
505961
513113
513245
514008
514103
519147
519579
523773
525151
526175
528087
530027
532209
559684
561339
561381
561595
563234
565646
593790
599687
603039
608600
635193
641117
666737
693944
697588
725232
726494
726686
737877
756342
761875
789101
796184
817565
]
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 (8716 , 8956 , 384988 , 388176 , 390898 , 402985 , 424653 , 425967 , 430215 , 430219 , 442975 , 444675 , 453959 , 454027 , 454031 , 454158 , 454465 , 457372 , 459883 , 462098 , 462100 , 464184 , 465391 , 466094 , 467975 , 467981 , 469530 , 469539 , 469552 , 474423 , 474774 , 476316 , 482240 , 484429 , 484688 , 485616 , 489976 , 502505 , 505961 , 513113 , 513245 , 514008 , 514103 , 519147 , 519579 , 523773 , 525151 , 526175 , 528087 , 530027 , 532209 , 559684 , 561339 , 561381 , 561595 , 563234 , 565646 , 593790 , 599687 , 603039 , 608600 , 635193 , 641117 , 666737 , 693944 , 697588 , 725232 , 726494 , 726686 , 737877 , 756342 , 761875 , 789101 , 796184 , 817565 );
Copy