125.04 ms (70.73%)
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
395714
419594
421820
421832
421833
421859
422195
422204
427972
430810
433269
438045
439666
439687
439764
439772
444045
445707
446059
449356
471631
477260
478292
489382
492133
493171
493464
495660
498402
500430
504211
505821
507086
508442
508699
511141
512094
513047
518219
519569
519622
521239
522556
522785
524792
527065
528163
531466
533697
535335
536335
569232
573726
573732
576604
578680
589681
590079
591082
591692
601585
604661
607630
616336
643252
688642
724178
782516
784932
]
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 (395714 , 419594 , 421820 , 421832 , 421833 , 421859 , 422195 , 422204 , 427972 , 430810 , 433269 , 438045 , 439666 , 439687 , 439764 , 439772 , 444045 , 445707 , 446059 , 449356 , 471631 , 477260 , 478292 , 489382 , 492133 , 493171 , 493464 , 495660 , 498402 , 500430 , 504211 , 505821 , 507086 , 508442 , 508699 , 511141 , 512094 , 513047 , 518219 , 519569 , 519622 , 521239 , 522556 , 522785 , 524792 , 527065 , 528163 , 531466 , 533697 , 535335 , 536335 , 569232 , 573726 , 573732 , 576604 , 578680 , 589681 , 590079 , 591082 , 591692 , 601585 , 604661 , 607630 , 616336 , 643252 , 688642 , 724178 , 782516 , 784932 );
Copy
10.47 ms (5.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
504211
519622
569232
573732
688642
576604
578680
590079
601585
604661
591082
784932
724178
395714
439687
421859
439666
478292
422204
445707
421820
421832
507086
492133
508442
493171
505821
511141
519569
528163
419594
471631
522785
536335
535335
533697
573726
591692
589681
782516
427972
430810
433269
438045
449356
444045
446059
518219
495660
508699
489382
498402
531466
527065
616336
421833
422195
439764
439772
477260
493464
500430
524792
521239
607630
643252
512094
522556
513047
]
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 (504211 , 519622 , 569232 , 573732 , 688642 , 576604 , 578680 , 590079 , 601585 , 604661 , 591082 , 784932 , 724178 , 395714 , 439687 , 421859 , 439666 , 478292 , 422204 , 445707 , 421820 , 421832 , 507086 , 492133 , 508442 , 493171 , 505821 , 511141 , 519569 , 528163 , 419594 , 471631 , 522785 , 536335 , 535335 , 533697 , 573726 , 591692 , 589681 , 782516 , 427972 , 430810 , 433269 , 438045 , 449356 , 444045 , 446059 , 518219 , 495660 , 508699 , 489382 , 498402 , 531466 , 527065 , 616336 , 421833 , 422195 , 439764 , 439772 , 477260 , 493464 , 500430 , 524792 , 521239 , 607630 , 643252 , 512094 , 522556 , 513047 );
Copy
2.20 ms (1.24%)
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
395714
419594
421820
421832
421833
421859
422195
422204
427972
430810
433269
438045
439666
439687
439764
439772
444045
445707
446059
449356
471631
477260
478292
489382
492133
493171
493464
495660
498402
500430
504211
505821
507086
508442
508699
511141
512094
513047
518219
519569
519622
521239
522556
522785
524792
527065
528163
531466
533697
535335
536335
569232
573726
573732
576604
578680
589681
590079
591082
591692
601585
604661
607630
616336
643252
688642
724178
782516
784932
]
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 (395714 , 419594 , 421820 , 421832 , 421833 , 421859 , 422195 , 422204 , 427972 , 430810 , 433269 , 438045 , 439666 , 439687 , 439764 , 439772 , 444045 , 445707 , 446059 , 449356 , 471631 , 477260 , 478292 , 489382 , 492133 , 493171 , 493464 , 495660 , 498402 , 500430 , 504211 , 505821 , 507086 , 508442 , 508699 , 511141 , 512094 , 513047 , 518219 , 519569 , 519622 , 521239 , 522556 , 522785 , 524792 , 527065 , 528163 , 531466 , 533697 , 535335 , 536335 , 569232 , 573726 , 573732 , 576604 , 578680 , 589681 , 590079 , 591082 , 591692 , 601585 , 604661 , 607630 , 616336 , 643252 , 688642 , 724178 , 782516 , 784932 );
Copy