70.20 ms (46.14%)
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
388254
405061
415819
454294
457165
464372
464834
465525
466355
467613
472252
475904
484069
487339
496603
496794
501487
501488
505447
512137
513775
513949
518545
520127
524018
525524
532912
535084
542190
545216
550667
554392
555872
559486
567337
574756
578411
581433
583723
585960
586564
588746
590620
593372
599272
599863
605521
610695
623149
628654
634856
639277
651276
696308
711998
720241
729826
755170
756845
760859
795593
803463
]
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 (388254 , 405061 , 415819 , 454294 , 457165 , 464372 , 464834 , 465525 , 466355 , 467613 , 472252 , 475904 , 484069 , 487339 , 496603 , 496794 , 501487 , 501488 , 505447 , 512137 , 513775 , 513949 , 518545 , 520127 , 524018 , 525524 , 532912 , 535084 , 542190 , 545216 , 550667 , 554392 , 555872 , 559486 , 567337 , 574756 , 578411 , 581433 , 583723 , 585960 , 586564 , 588746 , 590620 , 593372 , 599272 , 599863 , 605521 , 610695 , 623149 , 628654 , 634856 , 639277 , 651276 , 696308 , 711998 , 720241 , 729826 , 755170 , 756845 , 760859 , 795593 , 803463 );
Copy
12.93 ms (8.50%)
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
803463
720241
465525
696308
472252
756845
388254
555872
711998
599863
505447
574756
755170
457165
487339
454294
795593
581433
542190
525524
512137
518545
464372
559486
513775
501487
532912
415819
588746
535084
466355
605521
501488
464834
599272
513949
484069
496794
578411
634856
550667
628654
639277
520127
545216
651276
729826
524018
760859
583723
467613
554392
623149
405061
586564
590620
585960
567337
475904
496603
593372
610695
]
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 (803463 , 720241 , 465525 , 696308 , 472252 , 756845 , 388254 , 555872 , 711998 , 599863 , 505447 , 574756 , 755170 , 457165 , 487339 , 454294 , 795593 , 581433 , 542190 , 525524 , 512137 , 518545 , 464372 , 559486 , 513775 , 501487 , 532912 , 415819 , 588746 , 535084 , 466355 , 605521 , 501488 , 464834 , 599272 , 513949 , 484069 , 496794 , 578411 , 634856 , 550667 , 628654 , 639277 , 520127 , 545216 , 651276 , 729826 , 524018 , 760859 , 583723 , 467613 , 554392 , 623149 , 405061 , 586564 , 590620 , 585960 , 567337 , 475904 , 496603 , 593372 , 610695 );
Copy
2.36 ms (1.55%)
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
388254
405061
415819
454294
457165
464372
464834
465525
466355
467613
472252
475904
484069
487339
496603
496794
501487
501488
505447
512137
513775
513949
518545
520127
524018
525524
532912
535084
542190
545216
550667
554392
555872
559486
567337
574756
578411
581433
583723
585960
586564
588746
590620
593372
599272
599863
605521
610695
623149
628654
634856
639277
651276
696308
711998
720241
729826
755170
756845
760859
795593
803463
]
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 (388254 , 405061 , 415819 , 454294 , 457165 , 464372 , 464834 , 465525 , 466355 , 467613 , 472252 , 475904 , 484069 , 487339 , 496603 , 496794 , 501487 , 501488 , 505447 , 512137 , 513775 , 513949 , 518545 , 520127 , 524018 , 525524 , 532912 , 535084 , 542190 , 545216 , 550667 , 554392 , 555872 , 559486 , 567337 , 574756 , 578411 , 581433 , 583723 , 585960 , 586564 , 588746 , 590620 , 593372 , 599272 , 599863 , 605521 , 610695 , 623149 , 628654 , 634856 , 639277 , 651276 , 696308 , 711998 , 720241 , 729826 , 755170 , 756845 , 760859 , 795593 , 803463 );
Copy