83.37 ms (71.75%)
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
384072
394309
395738
402095
421219
431793
455941
460205
461432
474134
475175
486182
493099
493101
493117
502741
508515
512919
514940
518012
529742
532572
533802
540490
550846
554897
560340
562906
565924
566023
587266
590884
591285
591304
591317
597429
605303
608355
610962
619379
634477
646257
650886
663385
663436
663504
663987
664853
665519
667621
680702
693295
716476
718513
734227
746259
759747
763826
782148
787406
797052
802427
807148
816576
817354
817474
819909
821672
825776
]
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 (384072 , 394309 , 395738 , 402095 , 421219 , 431793 , 455941 , 460205 , 461432 , 474134 , 475175 , 486182 , 493099 , 493101 , 493117 , 502741 , 508515 , 512919 , 514940 , 518012 , 529742 , 532572 , 533802 , 540490 , 550846 , 554897 , 560340 , 562906 , 565924 , 566023 , 587266 , 590884 , 591285 , 591304 , 591317 , 597429 , 605303 , 608355 , 610962 , 619379 , 634477 , 646257 , 650886 , 663385 , 663436 , 663504 , 663987 , 664853 , 665519 , 667621 , 680702 , 693295 , 716476 , 718513 , 734227 , 746259 , 759747 , 763826 , 782148 , 787406 , 797052 , 802427 , 807148 , 816576 , 817354 , 817474 , 819909 , 821672 , 825776 );
Copy
10.72 ms (9.22%)
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
512919
825776
802427
716476
663504
693295
734227
821672
608355
819909
597429
394309
797052
667621
782148
816576
402095
610962
634477
817474
460205
663436
665519
663987
664853
650886
384072
493101
529742
807148
680702
554897
663385
591317
817354
646257
746259
787406
493117
759747
461432
605303
763826
493099
431793
718513
395738
591285
475175
421219
514940
486182
455941
566023
533802
550846
591304
474134
540490
565924
508515
619379
562906
587266
590884
532572
518012
502741
560340
]
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 (512919 , 825776 , 802427 , 716476 , 663504 , 693295 , 734227 , 821672 , 608355 , 819909 , 597429 , 394309 , 797052 , 667621 , 782148 , 816576 , 402095 , 610962 , 634477 , 817474 , 460205 , 663436 , 665519 , 663987 , 664853 , 650886 , 384072 , 493101 , 529742 , 807148 , 680702 , 554897 , 663385 , 591317 , 817354 , 646257 , 746259 , 787406 , 493117 , 759747 , 461432 , 605303 , 763826 , 493099 , 431793 , 718513 , 395738 , 591285 , 475175 , 421219 , 514940 , 486182 , 455941 , 566023 , 533802 , 550846 , 591304 , 474134 , 540490 , 565924 , 508515 , 619379 , 562906 , 587266 , 590884 , 532572 , 518012 , 502741 , 560340 );
Copy
2.46 ms (2.12%)
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
384072
394309
395738
402095
421219
431793
455941
460205
461432
474134
475175
486182
493099
493101
493117
502741
508515
512919
514940
518012
529742
532572
533802
540490
550846
554897
560340
562906
565924
566023
587266
590884
591285
591304
591317
597429
605303
608355
610962
619379
634477
646257
650886
663385
663436
663504
663987
664853
665519
667621
680702
693295
716476
718513
734227
746259
759747
763826
782148
787406
797052
802427
807148
816576
817354
817474
819909
821672
825776
]
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 (384072 , 394309 , 395738 , 402095 , 421219 , 431793 , 455941 , 460205 , 461432 , 474134 , 475175 , 486182 , 493099 , 493101 , 493117 , 502741 , 508515 , 512919 , 514940 , 518012 , 529742 , 532572 , 533802 , 540490 , 550846 , 554897 , 560340 , 562906 , 565924 , 566023 , 587266 , 590884 , 591285 , 591304 , 591317 , 597429 , 605303 , 608355 , 610962 , 619379 , 634477 , 646257 , 650886 , 663385 , 663436 , 663504 , 663987 , 664853 , 665519 , 667621 , 680702 , 693295 , 716476 , 718513 , 734227 , 746259 , 759747 , 763826 , 782148 , 787406 , 797052 , 802427 , 807148 , 816576 , 817354 , 817474 , 819909 , 821672 , 825776 );
Copy