85.96 ms (75.23%)
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
507207
542285
542321
542628
543125
543173
543288
543289
543293
543306
543450
543489
543798
544383
546063
547538
549990
550303
562342
564888
574649
574981
575037
577074
578525
578757
579439
580577
583056
585111
585569
591669
593833
599710
601101
605707
617118
618744
622923
623994
626354
628548
632549
634725
635336
635361
636477
643380
710228
711604
711660
725461
727554
733274
745925
745954
750412
750879
753138
756874
759117
795295
826480
]
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 (507207 , 542285 , 542321 , 542628 , 543125 , 543173 , 543288 , 543289 , 543293 , 543306 , 543450 , 543489 , 543798 , 544383 , 546063 , 547538 , 549990 , 550303 , 562342 , 564888 , 574649 , 574981 , 575037 , 577074 , 578525 , 578757 , 579439 , 580577 , 583056 , 585111 , 585569 , 591669 , 593833 , 599710 , 601101 , 605707 , 617118 , 618744 , 622923 , 623994 , 626354 , 628548 , 632549 , 634725 , 635336 , 635361 , 636477 , 643380 , 710228 , 711604 , 711660 , 725461 , 727554 , 733274 , 745925 , 745954 , 750412 , 750879 , 753138 , 756874 , 759117 , 795295 , 826480 );
Copy
9.25 ms (8.09%)
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
745925
826156
826480
543293
711660
591669
636477
635361
745954
543288
550303
580577
543289
623994
628548
632549
543489
711604
622923
626354
618744
753138
756874
759117
750879
585111
574649
578525
542285
544383
579439
710228
599710
605707
643380
733274
750412
795295
507207
542321
543173
542628
547538
577074
578757
585569
725461
543306
543450
543125
543798
574981
583056
562342
575037
727554
635336
564888
617118
593833
634725
546063
549990
601101
]
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 (745925 , 826156 , 826480 , 543293 , 711660 , 591669 , 636477 , 635361 , 745954 , 543288 , 550303 , 580577 , 543289 , 623994 , 628548 , 632549 , 543489 , 711604 , 622923 , 626354 , 618744 , 753138 , 756874 , 759117 , 750879 , 585111 , 574649 , 578525 , 542285 , 544383 , 579439 , 710228 , 599710 , 605707 , 643380 , 733274 , 750412 , 795295 , 507207 , 542321 , 543173 , 542628 , 547538 , 577074 , 578757 , 585569 , 725461 , 543306 , 543450 , 543125 , 543798 , 574981 , 583056 , 562342 , 575037 , 727554 , 635336 , 564888 , 617118 , 593833 , 634725 , 546063 , 549990 , 601101 );
Copy
2.08 ms (1.82%)
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
507207
542285
542321
542628
543125
543173
543288
543289
543293
543306
543450
543489
543798
544383
546063
547538
549990
550303
562342
564888
574649
574981
575037
577074
578525
578757
579439
580577
583056
585111
585569
591669
593833
599710
601101
605707
617118
618744
622923
623994
626354
628548
632549
634725
635336
635361
636477
643380
710228
711604
711660
725461
727554
733274
745925
745954
750412
750879
753138
756874
759117
795295
826480
]
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 (507207 , 542285 , 542321 , 542628 , 543125 , 543173 , 543288 , 543289 , 543293 , 543306 , 543450 , 543489 , 543798 , 544383 , 546063 , 547538 , 549990 , 550303 , 562342 , 564888 , 574649 , 574981 , 575037 , 577074 , 578525 , 578757 , 579439 , 580577 , 583056 , 585111 , 585569 , 591669 , 593833 , 599710 , 601101 , 605707 , 617118 , 618744 , 622923 , 623994 , 626354 , 628548 , 632549 , 634725 , 635336 , 635361 , 636477 , 643380 , 710228 , 711604 , 711660 , 725461 , 727554 , 733274 , 745925 , 745954 , 750412 , 750879 , 753138 , 756874 , 759117 , 795295 , 826480 );
Copy