98.95 ms (60.54%)
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
383202
389418
396422
414618
420447
422044
424648
425028
426408
430553
432359
433075
433295
434192
437960
444916
457497
459703
477873
487703
488585
492518
497362
502453
504414
504927
514638
514949
517464
521581
522382
522585
523317
524682
524792
528029
528030
544528
550130
551736
556762
557948
559392
559766
562282
565542
566375
574200
582899
597240
601077
603536
603854
603906
607919
617437
622229
636247
643090
647960
649216
676641
677307
]
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 (383202 , 389418 , 396422 , 414618 , 420447 , 422044 , 424648 , 425028 , 426408 , 430553 , 432359 , 433075 , 433295 , 434192 , 437960 , 444916 , 457497 , 459703 , 477873 , 487703 , 488585 , 492518 , 497362 , 502453 , 504414 , 504927 , 514638 , 514949 , 517464 , 521581 , 522382 , 522585 , 523317 , 524682 , 524792 , 528029 , 528030 , 544528 , 550130 , 551736 , 556762 , 557948 , 559392 , 559766 , 562282 , 565542 , 566375 , 574200 , 582899 , 597240 , 601077 , 603536 , 603854 , 603906 , 607919 , 617437 , 622229 , 636247 , 643090 , 647960 , 649216 , 676641 , 677307 );
Copy
14.78 ms (9.04%)
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
566375
649216
433075
497362
559766
414618
550130
424648
425028
601077
643090
389418
502453
457497
459703
514949
488585
556762
396422
557948
544528
524792
562282
617437
492518
433295
426408
444916
432359
504414
517464
437960
528029
565542
603536
383202
582899
521581
676641
636247
523317
420447
524682
647960
514638
677307
422044
434192
622229
504927
551736
574200
607919
522382
559392
522585
528030
603854
603906
430553
477873
597240
487703
]
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 (566375 , 649216 , 433075 , 497362 , 559766 , 414618 , 550130 , 424648 , 425028 , 601077 , 643090 , 389418 , 502453 , 457497 , 459703 , 514949 , 488585 , 556762 , 396422 , 557948 , 544528 , 524792 , 562282 , 617437 , 492518 , 433295 , 426408 , 444916 , 432359 , 504414 , 517464 , 437960 , 528029 , 565542 , 603536 , 383202 , 582899 , 521581 , 676641 , 636247 , 523317 , 420447 , 524682 , 647960 , 514638 , 677307 , 422044 , 434192 , 622229 , 504927 , 551736 , 574200 , 607919 , 522382 , 559392 , 522585 , 528030 , 603854 , 603906 , 430553 , 477873 , 597240 , 487703 );
Copy
2.71 ms (1.66%)
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
383202
389418
396422
414618
420447
422044
424648
425028
426408
430553
432359
433075
433295
434192
437960
444916
457497
459703
477873
487703
488585
492518
497362
502453
504414
504927
514638
514949
517464
521581
522382
522585
523317
524682
524792
528029
528030
544528
550130
551736
556762
557948
559392
559766
562282
565542
566375
574200
582899
597240
601077
603536
603854
603906
607919
617437
622229
636247
643090
647960
649216
676641
677307
]
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 (383202 , 389418 , 396422 , 414618 , 420447 , 422044 , 424648 , 425028 , 426408 , 430553 , 432359 , 433075 , 433295 , 434192 , 437960 , 444916 , 457497 , 459703 , 477873 , 487703 , 488585 , 492518 , 497362 , 502453 , 504414 , 504927 , 514638 , 514949 , 517464 , 521581 , 522382 , 522585 , 523317 , 524682 , 524792 , 528029 , 528030 , 544528 , 550130 , 551736 , 556762 , 557948 , 559392 , 559766 , 562282 , 565542 , 566375 , 574200 , 582899 , 597240 , 601077 , 603536 , 603854 , 603906 , 607919 , 617437 , 622229 , 636247 , 643090 , 647960 , 649216 , 676641 , 677307 );
Copy