208.07 ms (36.85%)
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
386035
411036
419134
426356
428483
439595
439776
439817
444085
447035
452242
453550
454415
458709
459943
460607
463673
464420
467302
469681
469698
472906
472958
474862
474875
476347
481897
490996
492686
495109
495147
500046
502554
503136
503683
506081
510109
510899
512606
514572
516728
521063
522057
528395
532484
546372
546375
552256
553951
557119
559044
561505
564486
565273
566140
574957
584712
585384
591411
601878
603898
605657
615654
642875
655482
802569
]
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 (386035 , 411036 , 419134 , 426356 , 428483 , 439595 , 439776 , 439817 , 444085 , 447035 , 452242 , 453550 , 454415 , 458709 , 459943 , 460607 , 463673 , 464420 , 467302 , 469681 , 469698 , 472906 , 472958 , 474862 , 474875 , 476347 , 481897 , 490996 , 492686 , 495109 , 495147 , 500046 , 502554 , 503136 , 503683 , 506081 , 510109 , 510899 , 512606 , 514572 , 516728 , 521063 , 522057 , 528395 , 532484 , 546372 , 546375 , 552256 , 553951 , 557119 , 559044 , 561505 , 564486 , 565273 , 566140 , 574957 , 584712 , 585384 , 591411 , 601878 , 603898 , 605657 , 615654 , 642875 , 655482 , 802569 );
Copy
88.93 ms (15.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
386035
411036
419134
426356
428483
439595
439776
439817
444085
447035
452242
453550
454415
458709
459943
460607
463673
464420
467302
469681
469698
472906
472958
474862
474875
476347
481897
490996
492686
495109
495147
500046
502554
503136
503683
506081
510109
510899
512606
514572
516728
521063
522057
528395
532484
546372
546375
552256
553951
557119
559044
561505
564486
565273
566140
574957
584712
585384
591411
601878
603898
605657
615654
642875
655482
802569
]
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 (386035 , 411036 , 419134 , 426356 , 428483 , 439595 , 439776 , 439817 , 444085 , 447035 , 452242 , 453550 , 454415 , 458709 , 459943 , 460607 , 463673 , 464420 , 467302 , 469681 , 469698 , 472906 , 472958 , 474862 , 474875 , 476347 , 481897 , 490996 , 492686 , 495109 , 495147 , 500046 , 502554 , 503136 , 503683 , 506081 , 510109 , 510899 , 512606 , 514572 , 516728 , 521063 , 522057 , 528395 , 532484 , 546372 , 546375 , 552256 , 553951 , 557119 , 559044 , 561505 , 564486 , 565273 , 566140 , 574957 , 584712 , 585384 , 591411 , 601878 , 603898 , 605657 , 615654 , 642875 , 655482 , 802569 );
Copy
11.28 ms (2.00%)
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
591411
472906
495147
546372
655482
546375
439776
481897
458709
503683
411036
514572
444085
454415
516728
532484
566140
605657
419134
474862
469698
510899
564486
565273
802569
474875
453550
467302
460607
464420
500046
601878
439817
428483
495109
603898
439595
426356
463673
472958
469681
522057
476347
447035
552256
585384
492686
512606
561505
553951
386035
502554
490996
510109
642875
459943
528395
503136
506081
452242
574957
557119
521063
584712
615654
559044
]
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 (591411 , 472906 , 495147 , 546372 , 655482 , 546375 , 439776 , 481897 , 458709 , 503683 , 411036 , 514572 , 444085 , 454415 , 516728 , 532484 , 566140 , 605657 , 419134 , 474862 , 469698 , 510899 , 564486 , 565273 , 802569 , 474875 , 453550 , 467302 , 460607 , 464420 , 500046 , 601878 , 439817 , 428483 , 495109 , 603898 , 439595 , 426356 , 463673 , 472958 , 469681 , 522057 , 476347 , 447035 , 552256 , 585384 , 492686 , 512606 , 561505 , 553951 , 386035 , 502554 , 490996 , 510109 , 642875 , 459943 , 528395 , 503136 , 506081 , 452242 , 574957 , 557119 , 521063 , 584712 , 615654 , 559044 );
Copy