84.08 ms (58.90%)
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
382071
395571
405850
407554
407816
409209
420270
426412
428022
428103
428653
442973
446106
454188
456609
458006
460735
462155
462485
466014
467048
469072
470987
471881
474549
475175
475294
478811
482304
483366
489692
489950
492269
492912
495604
500067
502304
502819
503338
510299
511250
512518
513137
514587
518836
519034
523565
534377
534394
534845
536370
544429
563122
591166
591314
599160
601028
613167
615909
626336
626337
634484
636656
639648
731678
748242
807191
807363
813244
]
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 (382071 , 395571 , 405850 , 407554 , 407816 , 409209 , 420270 , 426412 , 428022 , 428103 , 428653 , 442973 , 446106 , 454188 , 456609 , 458006 , 460735 , 462155 , 462485 , 466014 , 467048 , 469072 , 470987 , 471881 , 474549 , 475175 , 475294 , 478811 , 482304 , 483366 , 489692 , 489950 , 492269 , 492912 , 495604 , 500067 , 502304 , 502819 , 503338 , 510299 , 511250 , 512518 , 513137 , 514587 , 518836 , 519034 , 523565 , 534377 , 534394 , 534845 , 536370 , 544429 , 563122 , 591166 , 591314 , 599160 , 601028 , 613167 , 615909 , 626336 , 626337 , 634484 , 636656 , 639648 , 731678 , 748242 , 807191 , 807363 , 813244 );
Copy
11.55 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
748242
813244
407554
474549
518836
475175
409209
731678
512518
807363
502304
591166
636656
639648
454188
519034
544429
426412
442973
534845
807191
428653
500067
601028
462155
534394
420270
469072
470987
458006
460735
466014
502819
613167
407816
405850
382071
536370
615909
471881
492912
483366
511250
395571
563122
634484
467048
513137
482304
489692
478811
534377
599160
503338
514587
446106
626336
492269
510299
462485
456609
428022
475294
626337
523565
495604
428103
489950
591314
]
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 (748242 , 813244 , 407554 , 474549 , 518836 , 475175 , 409209 , 731678 , 512518 , 807363 , 502304 , 591166 , 636656 , 639648 , 454188 , 519034 , 544429 , 426412 , 442973 , 534845 , 807191 , 428653 , 500067 , 601028 , 462155 , 534394 , 420270 , 469072 , 470987 , 458006 , 460735 , 466014 , 502819 , 613167 , 407816 , 405850 , 382071 , 536370 , 615909 , 471881 , 492912 , 483366 , 511250 , 395571 , 563122 , 634484 , 467048 , 513137 , 482304 , 489692 , 478811 , 534377 , 599160 , 503338 , 514587 , 446106 , 626336 , 492269 , 510299 , 462485 , 456609 , 428022 , 475294 , 626337 , 523565 , 495604 , 428103 , 489950 , 591314 );
Copy
2.92 ms (2.05%)
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
382071
395571
405850
407554
407816
409209
420270
426412
428022
428103
428653
442973
446106
454188
456609
458006
460735
462155
462485
466014
467048
469072
470987
471881
474549
475175
475294
478811
482304
483366
489692
489950
492269
492912
495604
500067
502304
502819
503338
510299
511250
512518
513137
514587
518836
519034
523565
534377
534394
534845
536370
544429
563122
591166
591314
599160
601028
613167
615909
626336
626337
634484
636656
639648
731678
748242
807191
807363
813244
]
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 (382071 , 395571 , 405850 , 407554 , 407816 , 409209 , 420270 , 426412 , 428022 , 428103 , 428653 , 442973 , 446106 , 454188 , 456609 , 458006 , 460735 , 462155 , 462485 , 466014 , 467048 , 469072 , 470987 , 471881 , 474549 , 475175 , 475294 , 478811 , 482304 , 483366 , 489692 , 489950 , 492269 , 492912 , 495604 , 500067 , 502304 , 502819 , 503338 , 510299 , 511250 , 512518 , 513137 , 514587 , 518836 , 519034 , 523565 , 534377 , 534394 , 534845 , 536370 , 544429 , 563122 , 591166 , 591314 , 599160 , 601028 , 613167 , 615909 , 626336 , 626337 , 634484 , 636656 , 639648 , 731678 , 748242 , 807191 , 807363 , 813244 );
Copy