131.56 ms (58.08%)
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
429770
454859
458764
466404
468395
511920
518992
528502
529801
530371
531201
531656
532755
533557
533696
533738
533746
533760
534432
536458
536744
536787
537212
537670
537881
541197
541201
541839
545611
555094
558584
564891
565251
565557
572640
580597
591582
591741
596208
600257
600268
609165
621270
622402
622675
631195
631256
631597
633449
633814
634533
637141
638298
647313
647942
647954
648220
648241
666872
676636
695123
695178
702675
715373
727782
780968
812911
]
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 (429770 , 454859 , 458764 , 466404 , 468395 , 511920 , 518992 , 528502 , 529801 , 530371 , 531201 , 531656 , 532755 , 533557 , 533696 , 533738 , 533746 , 533760 , 534432 , 536458 , 536744 , 536787 , 537212 , 537670 , 537881 , 541197 , 541201 , 541839 , 545611 , 555094 , 558584 , 564891 , 565251 , 565557 , 572640 , 580597 , 591582 , 591741 , 596208 , 600257 , 600268 , 609165 , 621270 , 622402 , 622675 , 631195 , 631256 , 631597 , 633449 , 633814 , 634533 , 637141 , 638298 , 647313 , 647942 , 647954 , 648220 , 648241 , 666872 , 676636 , 695123 , 695178 , 702675 , 715373 , 727782 , 780968 , 812911 );
Copy
12.76 ms (5.63%)
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
715373
666872
536744
545611
648241
600257
633449
580597
622675
533696
532755
676636
609165
534432
634533
633814
537881
468395
531201
555094
648220
600268
591582
466404
637141
518992
727782
530371
596208
621270
533746
429770
531656
647313
591741
536458
780968
812911
536787
647942
695178
631256
528502
533760
572640
565251
631597
533557
541201
647954
631195
702675
458764
622402
558584
533738
541197
541839
565557
537670
529801
454859
695123
537212
638298
564891
511920
]
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 (715373 , 666872 , 536744 , 545611 , 648241 , 600257 , 633449 , 580597 , 622675 , 533696 , 532755 , 676636 , 609165 , 534432 , 634533 , 633814 , 537881 , 468395 , 531201 , 555094 , 648220 , 600268 , 591582 , 466404 , 637141 , 518992 , 727782 , 530371 , 596208 , 621270 , 533746 , 429770 , 531656 , 647313 , 591741 , 536458 , 780968 , 812911 , 536787 , 647942 , 695178 , 631256 , 528502 , 533760 , 572640 , 565251 , 631597 , 533557 , 541201 , 647954 , 631195 , 702675 , 458764 , 622402 , 558584 , 533738 , 541197 , 541839 , 565557 , 537670 , 529801 , 454859 , 695123 , 537212 , 638298 , 564891 , 511920 );
Copy
2.67 ms (1.18%)
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
429770
454859
458764
466404
468395
511920
518992
528502
529801
530371
531201
531656
532755
533557
533696
533738
533746
533760
534432
536458
536744
536787
537212
537670
537881
541197
541201
541839
545611
555094
558584
564891
565251
565557
572640
580597
591582
591741
596208
600257
600268
609165
621270
622402
622675
631195
631256
631597
633449
633814
634533
637141
638298
647313
647942
647954
648220
648241
666872
676636
695123
695178
702675
715373
727782
780968
812911
]
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 (429770 , 454859 , 458764 , 466404 , 468395 , 511920 , 518992 , 528502 , 529801 , 530371 , 531201 , 531656 , 532755 , 533557 , 533696 , 533738 , 533746 , 533760 , 534432 , 536458 , 536744 , 536787 , 537212 , 537670 , 537881 , 541197 , 541201 , 541839 , 545611 , 555094 , 558584 , 564891 , 565251 , 565557 , 572640 , 580597 , 591582 , 591741 , 596208 , 600257 , 600268 , 609165 , 621270 , 622402 , 622675 , 631195 , 631256 , 631597 , 633449 , 633814 , 634533 , 637141 , 638298 , 647313 , 647942 , 647954 , 648220 , 648241 , 666872 , 676636 , 695123 , 695178 , 702675 , 715373 , 727782 , 780968 , 812911 );
Copy