3
13.15 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
448031
600071
436186
488734
419628
588071
532954
530011
562282
552272
453409
436230
418102
521535
498717
547890
673578
770410
452953
666968
572022
440041
487362
543659
666490
514236
554210
444536
647936
411344
521438
471102
536382
436178
484692
491114
621259
536676
439558
520911
647340
439359
418886
470458
443085
527871
537236
751565
474643
421366
579344
470622
424011
454304
571194
533746
683261
443219
456236
477245
469223
502800
462372
541841
518597
518599
429890
439029
446172
]
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 (448031 , 600071 , 436186 , 488734 , 419628 , 588071 , 532954 , 530011 , 562282 , 552272 , 453409 , 436230 , 418102 , 521535 , 498717 , 547890 , 673578 , 770410 , 452953 , 666968 , 572022 , 440041 , 487362 , 543659 , 666490 , 514236 , 554210 , 444536 , 647936 , 411344 , 521438 , 471102 , 536382 , 436178 , 484692 , 491114 , 621259 , 536676 , 439558 , 520911 , 647340 , 439359 , 418886 , 470458 , 443085 , 527871 , 537236 , 751565 , 474643 , 421366 , 579344 , 470622 , 424011 , 454304 , 571194 , 533746 , 683261 , 443219 , 456236 , 477245 , 469223 , 502800 , 462372 , 541841 , 518597 , 518599 , 429890 , 439029 , 446172 );
Copy
4
2.90 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
411344
418102
418886
419628
421366
424011
429890
436178
436186
436230
439029
439359
439558
440041
443085
443219
444536
446172
448031
452953
453409
454304
456236
462372
469223
470458
470622
471102
474643
477245
484692
487362
488734
491114
498717
502800
514236
518597
518599
520911
521438
521535
527871
530011
532954
533746
536382
536676
537236
541841
543659
547890
552272
554210
562282
571194
572022
579344
588071
600071
621259
647340
647936
666490
666968
673578
683261
751565
770410
]
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 (411344 , 418102 , 418886 , 419628 , 421366 , 424011 , 429890 , 436178 , 436186 , 436230 , 439029 , 439359 , 439558 , 440041 , 443085 , 443219 , 444536 , 446172 , 448031 , 452953 , 453409 , 454304 , 456236 , 462372 , 469223 , 470458 , 470622 , 471102 , 474643 , 477245 , 484692 , 487362 , 488734 , 491114 , 498717 , 502800 , 514236 , 518597 , 518599 , 520911 , 521438 , 521535 , 527871 , 530011 , 532954 , 533746 , 536382 , 536676 , 537236 , 541841 , 543659 , 547890 , 552272 , 554210 , 562282 , 571194 , 572022 , 579344 , 588071 , 600071 , 621259 , 647340 , 647936 , 666490 , 666968 , 673578 , 683261 , 751565 , 770410 );
Copy
5
86.76 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
411344
418102
418886
419628
421366
424011
429890
436178
436186
436230
439029
439359
439558
440041
443085
443219
444536
446172
448031
452953
453409
454304
456236
462372
469223
470458
470622
471102
474643
477245
484692
487362
488734
491114
498717
502800
514236
518597
518599
520911
521438
521535
527871
530011
532954
533746
536382
536676
537236
541841
543659
547890
552272
554210
562282
571194
572022
579344
588071
600071
621259
647340
647936
666490
666968
673578
683261
751565
770410
]
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 (411344 , 418102 , 418886 , 419628 , 421366 , 424011 , 429890 , 436178 , 436186 , 436230 , 439029 , 439359 , 439558 , 440041 , 443085 , 443219 , 444536 , 446172 , 448031 , 452953 , 453409 , 454304 , 456236 , 462372 , 469223 , 470458 , 470622 , 471102 , 474643 , 477245 , 484692 , 487362 , 488734 , 491114 , 498717 , 502800 , 514236 , 518597 , 518599 , 520911 , 521438 , 521535 , 527871 , 530011 , 532954 , 533746 , 536382 , 536676 , 537236 , 541841 , 543659 , 547890 , 552272 , 554210 , 562282 , 571194 , 572022 , 579344 , 588071 , 600071 , 621259 , 647340 , 647936 , 666490 , 666968 , 673578 , 683261 , 751565 , 770410 );
Copy