3
10.68 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
646915
314054
313222
803283
774623
786758
799521
395247
396127
409971
351702
580512
781067
725167
756141
324241
523282
407335
560055
652882
673013
403293
556192
585108
691894
572065
442624
777075
577333
570491
467285
507004
516251
528496
550408
570264
665945
88788
456622
473225
538405
457495
492613
473084
552128
391106
469210
396541
452897
396524
473080
504899
549864
464282
422076
525846
472179
575915
476716
525246
457502
602569
483940
525026
560188
]
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 (646915 , 314054 , 313222 , 803283 , 774623 , 786758 , 799521 , 395247 , 396127 , 409971 , 351702 , 580512 , 781067 , 725167 , 756141 , 324241 , 523282 , 407335 , 560055 , 652882 , 673013 , 403293 , 556192 , 585108 , 691894 , 572065 , 442624 , 777075 , 577333 , 570491 , 467285 , 507004 , 516251 , 528496 , 550408 , 570264 , 665945 , 88788 , 456622 , 473225 , 538405 , 457495 , 492613 , 473084 , 552128 , 391106 , 469210 , 396541 , 452897 , 396524 , 473080 , 504899 , 549864 , 464282 , 422076 , 525846 , 472179 , 575915 , 476716 , 525246 , 457502 , 602569 , 483940 , 525026 , 560188 );
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
88788
313222
314054
324241
351702
391106
395247
396127
396524
396541
403293
407335
409971
422076
442624
452897
456622
457495
457502
464282
467285
469210
472179
473080
473084
473225
476716
483940
492613
504899
507004
516251
523282
525026
525246
525846
528496
538405
549864
550408
552128
556192
560055
560188
570264
570491
572065
575915
577333
580512
585108
602569
646915
652882
665945
673013
691894
725167
756141
774623
777075
781067
786758
799521
803283
]
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 (88788 , 313222 , 314054 , 324241 , 351702 , 391106 , 395247 , 396127 , 396524 , 396541 , 403293 , 407335 , 409971 , 422076 , 442624 , 452897 , 456622 , 457495 , 457502 , 464282 , 467285 , 469210 , 472179 , 473080 , 473084 , 473225 , 476716 , 483940 , 492613 , 504899 , 507004 , 516251 , 523282 , 525026 , 525246 , 525846 , 528496 , 538405 , 549864 , 550408 , 552128 , 556192 , 560055 , 560188 , 570264 , 570491 , 572065 , 575915 , 577333 , 580512 , 585108 , 602569 , 646915 , 652882 , 665945 , 673013 , 691894 , 725167 , 756141 , 774623 , 777075 , 781067 , 786758 , 799521 , 803283 );
Copy
5
83.09 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
88788
313222
314054
324241
351702
391106
395247
396127
396524
396541
403293
407335
409971
422076
442624
452897
456622
457495
457502
464282
467285
469210
472179
473080
473084
473225
476716
483940
492613
504899
507004
516251
523282
525026
525246
525846
528496
538405
549864
550408
552128
556192
560055
560188
570264
570491
572065
575915
577333
580512
585108
602569
646915
652882
665945
673013
691894
725167
756141
774623
777075
781067
786758
799521
803283
]
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 (88788 , 313222 , 314054 , 324241 , 351702 , 391106 , 395247 , 396127 , 396524 , 396541 , 403293 , 407335 , 409971 , 422076 , 442624 , 452897 , 456622 , 457495 , 457502 , 464282 , 467285 , 469210 , 472179 , 473080 , 473084 , 473225 , 476716 , 483940 , 492613 , 504899 , 507004 , 516251 , 523282 , 525026 , 525246 , 525846 , 528496 , 538405 , 549864 , 550408 , 552128 , 556192 , 560055 , 560188 , 570264 , 570491 , 572065 , 575915 , 577333 , 580512 , 585108 , 602569 , 646915 , 652882 , 665945 , 673013 , 691894 , 725167 , 756141 , 774623 , 777075 , 781067 , 786758 , 799521 , 803283 );
Copy