3
9.88 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
613129
513893
495924
566135
687221
501958
588223
730855
760466
513882
620968
403285
560197
560191
722214
580622
615713
619377
322090
801213
793727
750706
417276
383842
395736
514380
619376
735849
484872
560199
399585
462223
580695
689693
682923
740610
417742
399551
461487
399554
451596
492067
492519
678803
802049
492273
533799
534685
557544
461211
472800
475304
502703
399209
434642
495694
560212
524388
420659
437810
589107
492267
613014
483223
]
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 (613129 , 513893 , 495924 , 566135 , 687221 , 501958 , 588223 , 730855 , 760466 , 513882 , 620968 , 403285 , 560197 , 560191 , 722214 , 580622 , 615713 , 619377 , 322090 , 801213 , 793727 , 750706 , 417276 , 383842 , 395736 , 514380 , 619376 , 735849 , 484872 , 560199 , 399585 , 462223 , 580695 , 689693 , 682923 , 740610 , 417742 , 399551 , 461487 , 399554 , 451596 , 492067 , 492519 , 678803 , 802049 , 492273 , 533799 , 534685 , 557544 , 461211 , 472800 , 475304 , 502703 , 399209 , 434642 , 495694 , 560212 , 524388 , 420659 , 437810 , 589107 , 492267 , 613014 , 483223 );
Copy
4
2.52 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
322090
383842
395736
399209
399551
399554
399585
403285
417276
417742
420659
434642
437810
451596
461211
461487
462223
472800
475304
483223
484872
492067
492267
492273
492519
495694
495924
501958
502703
513882
513893
514380
524388
533799
534685
557544
560191
560197
560199
560212
566135
580622
580695
588223
589107
613014
613129
615713
619376
619377
620968
678803
682923
687221
689693
722214
730855
735849
740610
750706
760466
793727
801213
802049
]
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 (322090 , 383842 , 395736 , 399209 , 399551 , 399554 , 399585 , 403285 , 417276 , 417742 , 420659 , 434642 , 437810 , 451596 , 461211 , 461487 , 462223 , 472800 , 475304 , 483223 , 484872 , 492067 , 492267 , 492273 , 492519 , 495694 , 495924 , 501958 , 502703 , 513882 , 513893 , 514380 , 524388 , 533799 , 534685 , 557544 , 560191 , 560197 , 560199 , 560212 , 566135 , 580622 , 580695 , 588223 , 589107 , 613014 , 613129 , 615713 , 619376 , 619377 , 620968 , 678803 , 682923 , 687221 , 689693 , 722214 , 730855 , 735849 , 740610 , 750706 , 760466 , 793727 , 801213 , 802049 );
Copy
5
80.60 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
322090
383842
395736
399209
399551
399554
399585
403285
417276
417742
420659
434642
437810
451596
461211
461487
462223
472800
475304
483223
484872
492067
492267
492273
492519
495694
495924
501958
502703
513882
513893
514380
524388
533799
534685
557544
560191
560197
560199
560212
566135
580622
580695
588223
589107
613014
613129
615713
619376
619377
620968
678803
682923
687221
689693
722214
730855
735849
740610
750706
760466
793727
801213
802049
]
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 (322090 , 383842 , 395736 , 399209 , 399551 , 399554 , 399585 , 403285 , 417276 , 417742 , 420659 , 434642 , 437810 , 451596 , 461211 , 461487 , 462223 , 472800 , 475304 , 483223 , 484872 , 492067 , 492267 , 492273 , 492519 , 495694 , 495924 , 501958 , 502703 , 513882 , 513893 , 514380 , 524388 , 533799 , 534685 , 557544 , 560191 , 560197 , 560199 , 560212 , 566135 , 580622 , 580695 , 588223 , 589107 , 613014 , 613129 , 615713 , 619376 , 619377 , 620968 , 678803 , 682923 , 687221 , 689693 , 722214 , 730855 , 735849 , 740610 , 750706 , 760466 , 793727 , 801213 , 802049 );
Copy