89.20 ms (23.52%)
1
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
187072
239555
419880
420427
428512
431422
439589
439673
440631
443163
453307
462711
463177
465373
471945
475595
477723
481332
483401
484432
488405
491988
500463
502305
505818
508619
512558
513775
513940
518853
520448
520485
521077
522284
523336
523537
525275
526718
532419
536684
542750
555915
560396
561097
561110
561135
561480
563441
565526
567050
567643
568062
573755
575324
585332
586023
586554
587651
591413
591415
591416
591646
604555
606948
621489
626576
628426
632252
718747
808865
]
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 (187072 , 239555 , 419880 , 420427 , 428512 , 431422 , 439589 , 439673 , 440631 , 443163 , 453307 , 462711 , 463177 , 465373 , 471945 , 475595 , 477723 , 481332 , 483401 , 484432 , 488405 , 491988 , 500463 , 502305 , 505818 , 508619 , 512558 , 513775 , 513940 , 518853 , 520448 , 520485 , 521077 , 522284 , 523336 , 523537 , 525275 , 526718 , 532419 , 536684 , 542750 , 555915 , 560396 , 561097 , 561110 , 561135 , 561480 , 563441 , 565526 , 567050 , 567643 , 568062 , 573755 , 575324 , 585332 , 586023 , 586554 , 587651 , 591413 , 591415 , 591416 , 591646 , 604555 , 606948 , 621489 , 626576 , 628426 , 632252 , 718747 , 808865 );
Copy
11.07 ms (2.92%)
1
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
585332
520485
718747
187072
428512
502305
561097
586023
491988
508619
239555
483401
573755
439589
465373
513476
500463
626576
440631
471945
522284
505818
575324
808865
462711
481332
463177
443163
542750
561135
567643
565526
591646
591413
536684
560396
477723
475595
525275
521077
484432
488405
520448
431422
532419
555915
453307
518853
604555
586554
523537
591416
419880
512558
561110
439673
632252
420427
526718
606948
513940
587651
621489
568062
563441
628426
591415
567050
513775
561480
523336
]
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 (585332 , 520485 , 718747 , 187072 , 428512 , 502305 , 561097 , 586023 , 491988 , 508619 , 239555 , 483401 , 573755 , 439589 , 465373 , 513476 , 500463 , 626576 , 440631 , 471945 , 522284 , 505818 , 575324 , 808865 , 462711 , 481332 , 463177 , 443163 , 542750 , 561135 , 567643 , 565526 , 591646 , 591413 , 536684 , 560396 , 477723 , 475595 , 525275 , 521077 , 484432 , 488405 , 520448 , 431422 , 532419 , 555915 , 453307 , 518853 , 604555 , 586554 , 523537 , 591416 , 419880 , 512558 , 561110 , 439673 , 632252 , 420427 , 526718 , 606948 , 513940 , 587651 , 621489 , 568062 , 563441 , 628426 , 591415 , 567050 , 513775 , 561480 , 523336 );
Copy
2.47 ms (0.65%)
1
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
187072
239555
419880
420427
428512
431422
439589
439673
440631
443163
453307
462711
463177
465373
471945
475595
477723
481332
483401
484432
488405
491988
500463
502305
505818
508619
512558
513775
513940
518853
520448
520485
521077
522284
523336
523537
525275
526718
532419
536684
542750
555915
560396
561097
561110
561135
561480
563441
565526
567050
567643
568062
573755
575324
585332
586023
586554
587651
591413
591415
591416
591646
604555
606948
621489
626576
628426
632252
718747
808865
]
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 (187072 , 239555 , 419880 , 420427 , 428512 , 431422 , 439589 , 439673 , 440631 , 443163 , 453307 , 462711 , 463177 , 465373 , 471945 , 475595 , 477723 , 481332 , 483401 , 484432 , 488405 , 491988 , 500463 , 502305 , 505818 , 508619 , 512558 , 513775 , 513940 , 518853 , 520448 , 520485 , 521077 , 522284 , 523336 , 523537 , 525275 , 526718 , 532419 , 536684 , 542750 , 555915 , 560396 , 561097 , 561110 , 561135 , 561480 , 563441 , 565526 , 567050 , 567643 , 568062 , 573755 , 575324 , 585332 , 586023 , 586554 , 587651 , 591413 , 591415 , 591416 , 591646 , 604555 , 606948 , 621489 , 626576 , 628426 , 632252 , 718747 , 808865 );
Copy