4
12.73 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
397013
821586
573243
429739
665328
408009
527801
575077
579531
396354
404192
520417
365348
425897
507693
482504
575208
576098
568162
691201
570160
594253
743286
469709
511767
483814
489871
396320
469698
565558
545670
576047
576546
410817
462687
388110
463344
468672
406563
512329
512103
515179
515678
416031
449891
456736
562810
595769
395602
426065
452156
525238
510612
515167
822673
482519
464129
515985
689614
391400
517865
495895
512620
515644
515692
568604
242589
502485
478108
582439
471639
553108
586180
452084
648257
]
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 (397013 , 821586 , 573243 , 429739 , 665328 , 408009 , 527801 , 575077 , 579531 , 396354 , 404192 , 520417 , 365348 , 425897 , 507693 , 482504 , 575208 , 576098 , 568162 , 691201 , 570160 , 594253 , 743286 , 469709 , 511767 , 483814 , 489871 , 396320 , 469698 , 565558 , 545670 , 576047 , 576546 , 410817 , 462687 , 388110 , 463344 , 468672 , 406563 , 512329 , 512103 , 515179 , 515678 , 416031 , 449891 , 456736 , 562810 , 595769 , 395602 , 426065 , 452156 , 525238 , 510612 , 515167 , 822673 , 482519 , 464129 , 515985 , 689614 , 391400 , 517865 , 495895 , 512620 , 515644 , 515692 , 568604 , 242589 , 502485 , 478108 , 582439 , 471639 , 553108 , 586180 , 452084 , 648257 );
Copy
5
2.36 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
242589
365348
388110
391400
395602
396320
396354
397013
404192
406563
408009
410817
416031
425897
426065
429739
449891
452084
452156
456736
462687
463344
464129
468672
469698
469709
471639
478108
482504
482519
483814
489871
495895
502485
507693
510612
511767
512103
512329
512620
515167
515179
515644
515678
515692
515985
517865
520417
525238
527801
545670
553108
562810
565558
568162
568604
570160
573243
575077
575208
576047
576098
576546
579531
582439
586180
594253
595769
648257
665328
689614
691201
743286
821586
822673
]
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 (242589 , 365348 , 388110 , 391400 , 395602 , 396320 , 396354 , 397013 , 404192 , 406563 , 408009 , 410817 , 416031 , 425897 , 426065 , 429739 , 449891 , 452084 , 452156 , 456736 , 462687 , 463344 , 464129 , 468672 , 469698 , 469709 , 471639 , 478108 , 482504 , 482519 , 483814 , 489871 , 495895 , 502485 , 507693 , 510612 , 511767 , 512103 , 512329 , 512620 , 515167 , 515179 , 515644 , 515678 , 515692 , 515985 , 517865 , 520417 , 525238 , 527801 , 545670 , 553108 , 562810 , 565558 , 568162 , 568604 , 570160 , 573243 , 575077 , 575208 , 576047 , 576098 , 576546 , 579531 , 582439 , 586180 , 594253 , 595769 , 648257 , 665328 , 689614 , 691201 , 743286 , 821586 , 822673 );
Copy
6
90.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
242589
365348
388110
391400
395602
396320
396354
397013
404192
406563
408009
410817
416031
425897
426065
429739
449891
452084
452156
456736
462687
463344
464129
468672
469698
469709
471639
478108
482504
482519
483814
489871
495895
502485
507693
510612
511767
512103
512329
512620
515167
515179
515644
515678
515692
515985
517865
520417
525238
527801
545670
553108
562810
565558
568162
568604
570160
573243
575077
575208
576047
576098
576546
579531
582439
586180
594253
595769
648257
665328
689614
691201
743286
821586
822673
]
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 (242589 , 365348 , 388110 , 391400 , 395602 , 396320 , 396354 , 397013 , 404192 , 406563 , 408009 , 410817 , 416031 , 425897 , 426065 , 429739 , 449891 , 452084 , 452156 , 456736 , 462687 , 463344 , 464129 , 468672 , 469698 , 469709 , 471639 , 478108 , 482504 , 482519 , 483814 , 489871 , 495895 , 502485 , 507693 , 510612 , 511767 , 512103 , 512329 , 512620 , 515167 , 515179 , 515644 , 515678 , 515692 , 515985 , 517865 , 520417 , 525238 , 527801 , 545670 , 553108 , 562810 , 565558 , 568162 , 568604 , 570160 , 573243 , 575077 , 575208 , 576047 , 576098 , 576546 , 579531 , 582439 , 586180 , 594253 , 595769 , 648257 , 665328 , 689614 , 691201 , 743286 , 821586 , 822673 );
Copy